summaryrefslogtreecommitdiffstats
path: root/benchmarks/Benchmark.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Revert "Moving StringPrintf to libbase.""Dan Albert2015-03-161-2/+2
| | | | | | This reverts commit d2dad2b24fb82604f9dbe7a082e630a524f1473d. (cherry picked from commit 3e87c785434fdfed2fb00496cb391c411a426bdd)
* Revert "Moving StringPrintf to libbase."Nicolas Geoffray2015-03-161-2/+2
| | | | | | | | libbase has been reverted This reverts commit 7ed5fa1e4d37722a644518594bf2b0e1529c05e9. Change-Id: I5d8ff8c38ff8c9123e6cee5dc15a101a79e94b2e
* Moving StringPrintf to libbase.Dan Albert2015-03-131-2/+2
| | | | Change-Id: I47ef28bb294ffb7c7c065c5624417edf23503b77
* Allow wildcards to match arg values.Christopher Ferris2015-02-251-14/+19
| | | | Change-Id: I38230b500bb8f8f69af0d7c740855a401cd12898
* Fix 64-bit benchmark buildGreg Hackmann2015-02-201-2/+2
| | | | | | | | | | | | | The * flag to printf() wants an int instead of size_t, and these are distinct types on 64-bit. To accomodate this, make the name column width helpers return int. In theory this truncates things, but in practice this only matters if you have a benchmark with more than INT_MAX characters in its name (in which case you have bigger problems). Change-Id: I3338948c25a3a8d84f1ead2f5b457c05da8a01cf Signed-off-by: Greg Hackmann <ghackmann@google.com>
* Refactor the benchmark code.Christopher Ferris2015-02-191-0/+154
Changes: - Modify the benchmarks to derive from a single Benchmark object. - Rewrite the main iteration code. This includes changing the iteration code to use the actual total time calculated by the benchmark as a basis for determining whether there are enough iterations instead of using the time it takes to run the benchmark. - Allow benchmarks to take no argument, int, or double. - Fix the PrettyInt printer for negative integers. - Modify the max column width name to include the whole name including the arg part. - Reformat property_benchmark.cpp in line with the rest of the code. - Modify a few of the math benchmarks to take an argument instead of separate benchmarks for the same function with different args. - Create a vector of regex_t structs to represent the args all at once instead of when running each benchmark. This change is in preparation for adding new math based benchmarks. Tested by running on a nexus flo running at max using the new code and the old code and comparing. All of the numbers are similar, but some of the iterations are different due to the slightly different algorithm used. Change-Id: I57ad1f3ff083282b9ffeb72e687cab369ce3523a