summaryrefslogtreecommitdiffstats
path: root/benchmarks/property_benchmark.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Refactor the benchmark code.Christopher Ferris2015-02-191-158/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Make sure not to construct illegal property names.Christopher Ferris2014-07-151-6/+28
| | | | Change-Id: I37624e69aec51efd4291f076fb87af3f35d33025
* Added a __system_property_serial benchmark.Brigid Smith2014-07-091-0/+26
| | | | Change-Id: Ifc2116f26acb242f4dcdb6eefe128899a9dc63bb
* Added __system_propery_read benchmark.Brigid Smith2014-07-091-0/+27
| | | | Change-Id: Ic0e9118859a013aa04841de25822a81a7fc74b3c
* Modify hard-coded directory.Christopher Ferris2014-05-011-2/+12
| | | | | | | Use the ANDROID_DATA environment variable instead of the hard-coded directory for these benchmarks. Change-Id: I00bae7b4a24e81e77fc8f52e1fe99f4d4918f520
* bionic: move benchmarks out of tests directoryColin Cross2013-12-101-0/+148
Change-Id: I4d054965198af22c9a9c821d1bc53f4e9ea01248