GitXplorerGitXplorer
j

CppPerformanceBenchmarks

public
10 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
f9d84770d17a3b113cc34781d4ed0984e617e3bc

Merge branch 'staging' into 'master'

CChrisCoxArt committed 3 years ago
Unverified
796b1ecd2df1cd77a1c3ed262bf77028c050fa5f

fix line endings and continue indicator

CChrisCoxArt committed 3 years ago
Unverified
d6473fd6741763ee12401a8153d10d738a78e23b

change to size_t, still get bogus compiler warnings about loops

CChrisCoxArt committed 3 years ago
Unverified
c6d7e263a2987acc4411a8bbd20c407d210c1024

fix spelling

CChrisCoxArt committed 3 years ago
Unverified
bbacd562c9d032c747af415ca3f1f9dba7803631

update makefiles

CChrisCoxArt committed 3 years ago
Unverified
b67b16024d14255bbf691825a2fe9a87d2b1a526

new tests

CChrisCoxArt committed 3 years ago

README

The README file for this repository.

/* Copyright 2007-2008 Adobe Systems Incorporated Copyright 2018-2022 Chris Cox Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt or a copy at http://stlab.adobe.com/licenses.html ) */

/******************************************************************************/

Goals:

To help compiler vendors identify places where they may be able to improve the performance of the code they generate, or the libraries they supply.

To help developers understand the performance impact of using different data types, operations, and C++ language features with their target compilers and OSes.

/******************************************************************************/

Secondary goals:

To take performance problems found in real world code and turn them into benchmarks for compiler vendors and other developers to learn from.

Keep the benchmark portable to as many compilers and OSes as possible. This means keeping things simple and external dependencies minimal.

Not to use specialized optimization flags per test. No pragmas or other compiler directives are allowed in the source. All source files should use the same compilation flags. Use the common optimization flags (-O, -O1, -O2, -O3, or -Os). If another option improves optimization, then why isn't it on for -O3? If an optimization flag doesn't always improve performance, that is most likely a bug in the optimization code that needs to be fixed. In the real world, developers can't test all permutations of all optimization flags. They expect the standard flags to work.

/******************************************************************************/

**** A note to compiler vendors: Please match the idioms, not the instances. The benchmark code will be changing over time. And we do read your assembly output.

/******************************************************************************/

Building:

Unix users should be able to use "make all" to build and "make report" to generate the report. If you wish to use a different compiler, you can set that from the make command line, or edit the makefile.

Solaris users will need to use "gmake all" to build and "gmake report" to generate the report.

Windows users will need to make sure that the VC environment variables are set for their shell (command prompt), then use "nmake -f makefile.nt all" and "nmake -f makefile.nt report" from within that shell.

A CMakeLists.txt file is provided for convenience, but not tested as thoroughly as the makefiles. (thanks to Denis Glazachev)