aboutsummaryrefslogtreecommitdiff
path: root/includes/benchmark.h
AgeCommit message (Collapse)Author
2018-02-27benchmark: New benchmark typesBurt P
New benchmark types: * benchmark_crunch_for(): call function repeatedly for a number of seconds; result is number of completions. * benchmark_parallel(): one call for each available thread up to n_threads; result is sum of return values. Tweaks: * Store return values from callback via benchmark_parallel_for_dispatcher() Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-27Benchmark results: store threads usedBurt P
Benchmark results store actual number of threads used by benchmark when it was run. Previously, results assumed all available threads were used. Examples: * CPU Fib only uses one * FPU FFT uses 4, 2, or 1 * N-Queens uses 10, 5, 2, or 1 Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-02Add zlib benchmarkLeandro Pereira
2012-01-27Fix weird results in benchmark valuesLeandro Pereira
gcc was (correctly) assuming that benchmark_parallel_for() returned an integer, which was being to a double and messing up results. Added the missing prototype. Also, populate bench_results array with sane values on module init. Some other minor cleanups in benchmark code.
2010-05-03Remove outdated arch directoryLeandro A. F. Pereira
2010-05-03Move files from hardinfo2 to root.Leandro A. F. Pereira