History log of /external/google-benchmark/src/string_util.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d70417994a3c845c49c4443e92b26a52b320a759 22-Aug-2017 Dominic Hamon <dominichamon@users.noreply.github.com> Allow the definition of 1k to be flexible. (#438)

When generating a human-readable number for user counters, we don't
generally expect 1k to be 1024. This is the default due to the more
general purpose string utility.

Fixes #437
/external/google-benchmark/src/string_util.cc
b4fdf6e9df82ea5a424440436dcc4ac0474decce 13-Jan-2017 jpmag <biojppm@users.noreply.github.com> HumanReadableNumber(): Simplify output for simple numbers. Examples: (#291)

* HumanReadableNumber(): Simplify output for simple numbers. Examples:

HumanReadableNumber( 0.0)= 0 ----> 0
HumanReadableNumber( 0.5)= 512m ----> 0.5
HumanReadableNumber( 0.9)= 921.6m ----> 0.9
HumanReadableNumber( 1.0)= 1024m ----> 1
HumanReadableNumber( 1.05)=1075.2m ----> 1.05
HumanReadableNumber( 1.1)= 1.1 ----> 1.1
HumanReadableNumber( 1.2)= 1.2 ----> 1.2
HumanReadableNumber( 0.0e-1)= 0 ----> 0
HumanReadableNumber( 0.5e-1)= 51.2m ----> 0.05
HumanReadableNumber( 0.9e-1)= 92.16m ----> 0.09
HumanReadableNumber( 1.0e-1)= 102.4m ----> 0.1
HumanReadableNumber(1.05e-1)=107.52m ----> 0.105
HumanReadableNumber( 1.1e-1)=112.64m ----> 0.11
HumanReadableNumber( 1.2e-1)=122.88m ----> 0.12
HumanReadableNumber( 0.0e-3)= 0 ----> 0
HumanReadableNumber( 0.5e-3)=524.288u ----> 524.288u
HumanReadableNumber( 0.9e-3)=943.718u ----> 943.718u
HumanReadableNumber( 1.0e-3)=1048.58u ----> 1048.58u
HumanReadableNumber(1.05e-3)= 1101u ----> 0.00105
HumanReadableNumber( 1.1e-3)=1.1264m ----> 0.0011
HumanReadableNumber( 1.2e-3)=1.2288m ----> 0.0012

* HumanReadableNumber(): change simple printing threshold to 0.01.

* ToExponentAndMantissa(): refactor branch sequence.
/external/google-benchmark/src/string_util.cc
17e1c405dd67858ca47b53b5968e564895dba965 24-Oct-2016 Marek Kurdej <marek@quasardb.net> Add ArgName() and ArgNames() methods to name arguments/ranges.
/external/google-benchmark/src/string_util.cc
332f677b8bec401641a2743ab5d741c13cc6811d 07-Oct-2016 Dominic Hamon <dominichamon@users.noreply.github.com> Apply clang-format to all headers and source (#303)
/external/google-benchmark/src/string_util.cc
a2f2a28b315248e9bd8651cb1cfc0d4d69c425af 09-Oct-2015 Anton Danielsson <anton.danielsson@dirac.se> Changed date format to ISO 8601.
/external/google-benchmark/src/string_util.cc
032c190c4a38697d6d92ec905e43e5c0c3933a71 09-Oct-2015 Anton Danielsson <anton.danielsson@dirac.se> Removed newline.
/external/google-benchmark/src/string_util.cc
7e9800e78aa2da840d6e68e53afa650e91f13009 08-Oct-2015 Anton Danielsson <anton.danielsson@dirac.se> Added a comment why std::vsnprintf is not used.
/external/google-benchmark/src/string_util.cc
c1e03a4b58b79bcffa880e897588272d3f6ac05a 05-Oct-2015 Anton Danielsson <anton.danielsson@dirac.se> Changed "std::vsnprintf" to "vsnprintf" to be able to build with the android-ndk.
/external/google-benchmark/src/string_util.cc
e7f6c42a793e3736398f19740cc341fed177253a 05-Oct-2015 Anton Danielsson <anton.danielsson@dirac.se> Fixed bug in "ToExponentAndMantissa" when negative exponents where created.

Unary minus where applied to an unsigned type.
/external/google-benchmark/src/string_util.cc
680a399a9387c4290442919681cb5d420a751232 27-Mar-2015 Dominic Hamon <dominic@google.com> Add double-quotes where necessary
/external/google-benchmark/src/string_util.cc
7a767012f1c423b37069f6d315b97164b5850271 12-Mar-2015 Eric Fiselier <eric@efcs.ca> Adopt new benchmark timing internals.

This patch adopts a new internal structure for how timings are performed.
Currently every iteration of a benchmark checks to see if it has been running
for an appropriate amount of time. Checking the clock introduces noise into
the timings and this can cause inconsistent output from each benchmark.

Now every iteration of a benchmark only checks an iteration count to see if it
should stop running. The iteration count is determined before hand by testing
the benchmark on a series of increasing iteration counts until a suitable count
is found. This increases the amount of time it takes to run the actual benchmarks
but it also greatly increases the accuracy of the results.

This patch introduces some breaking changes. The notable breaking changes are:
1. Benchmarks run on multiple threads no generate a report per thread. Instead
only a single report is generated.
2. ::benchmark::UseRealTime() was removed and replaced with State::UseRealTime().
/external/google-benchmark/src/string_util.cc
a187aa080377f4707bb28690d51f206c0d49f436 06-Mar-2015 Eric Fiselier <eric@efcs.ca> Third step in moving towards adopting new timer semantics
/external/google-benchmark/src/string_util.cc