History log of /bionic/benchmarks/property_benchmark.cpp
Revision Date Author Comments
a630784fe1124ae5956da2639f1b324c15365fa7 17-Feb-2016 Elliott Hughes <enh@google.com> Switch bionic over to google-benchmark.

Also removes the old benchmarking library.

(cherry picked from commit 281e06ba69ce6f591697acf65a24651050809920)

Bug: http://b/24803663
Change-Id: Idde5aa759b03d2b3cb51e32785beaf1c46476fa3
df4942c04a63ae6e4f5c78ece9f696d6b8b74d32 18-Feb-2015 Christopher Ferris <cferris@google.com> Refactor the benchmark code.

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
b0815aeacb86e20cbbd4fa27dd90ad43b9c200fe 16-Jul-2014 Christopher Ferris <cferris@google.com> Make sure not to construct illegal property names.

(cherry picked from commit 53531ccebbaf103d80516ff74874482ca3ee31fc)

Change-Id: I7e988c335ef32b61b2ac34f34509274623dbed69
53531ccebbaf103d80516ff74874482ca3ee31fc 16-Jul-2014 Christopher Ferris <cferris@google.com> Make sure not to construct illegal property names.

Change-Id: I37624e69aec51efd4291f076fb87af3f35d33025
a304476145810d62f76b23a188b1680287716cfd 09-Jul-2014 Brigid Smith <brigidsmith@google.com> Added __system_propery_read benchmark.

Change-Id: Ic0e9118859a013aa04841de25822a81a7fc74b3c
28417e6314768d057ab7ad7a0208f1af7597b4d6 10-Jul-2014 Brigid Smith <brigidsmith@google.com> Added a __system_property_serial benchmark.

Change-Id: Ifc2116f26acb242f4dcdb6eefe128899a9dc63bb
8b1ade5c0bdb5b3186c73c3081cc3013540190d9 01-May-2014 Christopher Ferris <cferris@google.com> Modify hard-coded directory.

Use the ANDROID_DATA environment variable instead of the hard-coded
directory for these benchmarks.

Change-Id: I00bae7b4a24e81e77fc8f52e1fe99f4d4918f520
bd3efbc9b585e0c9801b0b35f282347cb8692ca8 16-Nov-2013 Colin Cross <ccross@android.com> bionic: move benchmarks out of tests directory

Change-Id: I4d054965198af22c9a9c821d1bc53f4e9ea01248