benchmark/test
Roman Lebedev caa2fcb19c
Counter(): add 'one thousand' param. (#657)
* Counter(): add 'one thousand' param.

Needed for https://github.com/google/benchmark/pull/654

Custom user counters are quite custom. It is not guaranteed
that the user *always* expects for these to have 1k == 1000.
If the counter represents bytes/memory/etc, 1k should be 1024.

Some bikeshedding points:
1. Is this sufficient, or do we really want to go full on
   into custom types with names?
   I think just the '1000' is sufficient for now.
2. Should there be a helper benchmark::Counter::Counter{1000,1024}()
   static 'constructor' functions, since these two, by far,
   will be the most used?
3. In the future, we should be somehow encoding this info into JSON.

* Counter(): use std::pair<> to represent 'one thousand'

* Counter(): just use a new enum with two values 1000 vs 1024.

Simpler is better. If someone comes up with a real reason
to need something more advanced, it can be added later on.

* Counter: just store the 1000 or 1024 in the One_K values directly

* Counter: s/One_K/OneK/
2018-08-29 21:11:06 +03:00
..
AssemblyTests.cmake split_list is not defined for assembly tests (#595) 2018-05-14 15:02:49 +01:00
BUILD Add benchmark_main target. (#601) 2018-05-25 11:18:58 +01:00
CMakeLists.txt Counter(): add 'one thousand' param. (#657) 2018-08-29 21:11:06 +03:00
basic_test.cc Return 0 from State::iterations() when not yet started. (#598) 2018-05-24 10:33:19 +01:00
benchmark_gtest.cc Allow AddRange to work with int64_t. (#548) 2018-04-03 23:12:47 +01:00
benchmark_test.cc Allow AddRange to work with int64_t. (#548) 2018-04-03 23:12:47 +01:00
clobber_memory_assembly_test.cc Add tests to verify assembler output -- Fix DoNotOptimize. (#530) 2018-03-23 16:10:47 -06:00
complexity_test.cc Track 'type' of the run - is it an actual measurement, or an aggregate. (#658) 2018-08-28 18:11:36 +03:00
cxx03_test.cc Enforce using a semicolon after BENCHMARK_MAIN to remove compiler warnings (#495) 2017-12-03 18:45:07 -07:00
diagnostics_test.cc Refactor most usages of KeepRunning to use the perfered ranged-for. (#459) 2017-10-17 12:17:02 -06:00
donotoptimize_assembly_test.cc Add tests to verify assembler output -- Fix DoNotOptimize. (#530) 2018-03-23 16:10:47 -06:00
donotoptimize_test.cc Fix uninitialized warning (#560) 2018-03-25 20:05:31 +01:00
filter_test.cc Refactor most usages of KeepRunning to use the perfered ranged-for. (#459) 2017-10-17 12:17:02 -06:00
fixture_test.cc Enforce using a semicolon after BENCHMARK_MAIN to remove compiler warnings (#495) 2017-12-03 18:45:07 -07:00
link_main_test.cc Add benchmark_main target. (#601) 2018-05-25 11:18:58 +01:00
map_test.cc Allow AddRange to work with int64_t. (#548) 2018-04-03 23:12:47 +01:00
memory_manager_test.cc Track 'type' of the run - is it an actual measurement, or an aggregate. (#658) 2018-08-28 18:11:36 +03:00
multiple_ranges_test.cc Allow AddRange to work with int64_t. (#548) 2018-04-03 23:12:47 +01:00
options_test.cc Enforce using a semicolon after BENCHMARK_MAIN to remove compiler warnings (#495) 2017-12-03 18:45:07 -07:00
output_test.h Add Iteration-related Counter::Flags. Fixes #618 (#621) 2018-06-27 15:45:30 +01:00
output_test_helper.cc Add Iteration-related Counter::Flags. Fixes #618 (#621) 2018-06-27 15:45:30 +01:00
register_benchmark_test.cc (clang-)format all the things (#610) 2018-06-01 11:14:19 +01:00
reporter_output_test.cc Track 'type' of the run - is it an actual measurement, or an aggregate. (#658) 2018-08-28 18:11:36 +03:00
skip_with_error_test.cc (clang-)format all the things (#610) 2018-06-01 11:14:19 +01:00
state_assembly_test.cc (clang-)format all the things (#610) 2018-06-01 11:14:19 +01:00
statistics_gtest.cc (clang-)format all the things (#610) 2018-06-01 11:14:19 +01:00
string_util_gtest.cc Fix compilation on Android with GNU STL (#596) 2018-06-05 11:36:26 +01:00
templated_fixture_test.cc (clang-)format all the things (#610) 2018-06-01 11:14:19 +01:00
user_counters_tabular_test.cc Track 'type' of the run - is it an actual measurement, or an aggregate. (#658) 2018-08-28 18:11:36 +03:00
user_counters_test.cc Track 'type' of the run - is it an actual measurement, or an aggregate. (#658) 2018-08-28 18:11:36 +03:00
user_counters_thousands_test.cc Counter(): add 'one thousand' param. (#657) 2018-08-29 21:11:06 +03:00