benchmark/src
Samuel Panzer 296ec5693e Support State::KeepRunningBatch(). (#521)
* Support State::KeepRunningBatch().

State::KeepRunning() can take large amounts of time relative to quick
operations (on the order of 1ns, depending on hardware). For such
sensitive operations, it is recommended to run batches of repeated
operations.

This commit simplifies handling of total_iterations_. Rather than
predecrementing such that total_iterations_ == 1 signals that
KeepRunning() should exit, total_iterations_ == 0 now signals the
intention for the benchmark to exit.

* Create better fast path in State::KeepRunningBatch()

* Replace int parameter with size_t to fix signed mismatch warnings

* Ensure benchmark State has been started even on error.

* Simplify KeepRunningBatch()
2018-02-09 21:57:04 -07:00
..
arraysize.h Apply clang-format to all headers and source (#303) 2016-10-07 11:35:03 -07:00
benchmark_api_internal.h Drop Stat1, refactor statistics to be user-providable, add median. (#428) 2017-08-23 16:44:29 -07:00
benchmark_register.cc Refactor System information collection -- Add CPU Cache Info (#483) 2017-11-22 08:33:52 -08:00
benchmark.cc Support State::KeepRunningBatch(). (#521) 2018-02-09 21:57:04 -07:00
check.h CHECK(): rename EPS to FLOAT for consistency with googletest style. 2017-05-01 23:01:10 +01:00
CMakeLists.txt Add a pkg-config file, for the benefit of projects not using CMake. (#480) 2017-11-15 11:51:22 -08:00
colorprint.cc fix android compilation (#372) 2017-04-18 09:48:07 -06:00
colorprint.h Apply clang-format to all headers and source (#303) 2016-10-07 11:35:03 -07:00
commandlineflags.cc Google-style cleanups (#416) 2017-07-13 18:33:43 +02:00
commandlineflags.h Auto-detect whether Benchmark should produce colorized output (#126) 2016-09-15 15:10:35 -06:00
complexity.cc Drop Stat1, refactor statistics to be user-providable, add median. (#428) 2017-08-23 16:44:29 -07:00
complexity.h Drop Stat1, refactor statistics to be user-providable, add median. (#428) 2017-08-23 16:44:29 -07:00
console_reporter.cc Console reporter: properly account for the lenght of custom counter names (#484) 2017-11-27 09:01:01 -08:00
counter.cc Merge remote-tracking branch 'upstream/master' into compact 2017-05-02 18:54:37 +01:00
counter.h Make Benchmark a single header library (but not header-only) (#407) 2017-07-04 16:31:47 -06:00
csv_reporter.cc more clang tidy cleanups (#417) 2017-07-15 00:21:20 +02:00
cycleclock.h Make Benchmark a single header library (but not header-only) (#407) 2017-07-04 16:31:47 -06:00
internal_macros.h Wrap COMPILER macros. (#514) 2018-01-11 17:22:45 -08:00
json_reporter.cc Improve CPU Cache info reporting -- Add Windows support. (#486) 2017-11-26 13:33:01 -07:00
log.h Make Benchmark a single header library (but not header-only) (#407) 2017-07-04 16:31:47 -06:00
mutex.h Apply clang-format to all headers and source (#303) 2016-10-07 11:35:03 -07:00
re.h Add support for building w/o exceptions (#317) 2016-12-05 09:24:09 -08:00
reporter.cc Improve CPU Cache info reporting -- Add Windows support. (#486) 2017-11-26 13:33:01 -07:00
sleep.cc Replace int64_t usages with 'int' instead. (#359) 2017-03-27 18:32:12 -06:00
sleep.h Replace int64_t usages with 'int' instead. (#359) 2017-03-27 18:32:12 -06:00
statistics.cc Some small clang-tidy fixes (#520) 2018-01-29 08:38:47 -08:00
statistics.h Drop Stat1, refactor statistics to be user-providable, add median. (#428) 2017-08-23 16:44:29 -07:00
string_util.cc Allow the definition of 1k to be flexible. (#438) 2017-08-21 16:05:24 -07:00
string_util.h Allow the definition of 1k to be flexible. (#438) 2017-08-21 16:05:24 -07:00
sysinfo.cc Fixes compilation error caused by integer precision loss due to implicit (#518) 2018-01-19 09:17:01 -08:00
timers.cc Fix ThreadCPUUsage when running on RTEMS. (#414) 2017-07-06 15:59:13 -07:00
timers.h Make PauseTiming() and ResumeTiming() per thread. (#286) 2016-09-02 21:34:34 -06:00