Recently the library added a new ranged-for variant of the KeepRunning loop that is much faster. For this reason it should be preferred in all new code. Because a library, its documentation, and its tests should all embody the best practices of using the library, this patch changes all but a few usages of KeepRunning() into for (auto _ : state). The remaining usages in the tests and documentation persist only to document and test behavior that is different between the two formulations. Also note that because the range-for loop requires C++11, the KeepRunning variant has not been deprecated at this time.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| CMakeLists.txt | Loading commit data... | |
| basic_test.cc | Loading commit data... | |
| benchmark_test.cc | Loading commit data... | |
| complexity_test.cc | Loading commit data... | |
| cxx03_test.cc | Loading commit data... | |
| diagnostics_test.cc | Loading commit data... | |
| donotoptimize_test.cc | Loading commit data... | |
| filter_test.cc | Loading commit data... | |
| fixture_test.cc | Loading commit data... | |
| map_test.cc | Loading commit data... | |
| multiple_ranges_test.cc | Loading commit data... | |
| options_test.cc | Loading commit data... | |
| output_test.h | Loading commit data... | |
| output_test_helper.cc | Loading commit data... | |
| register_benchmark_test.cc | Loading commit data... | |
| reporter_output_test.cc | Loading commit data... | |
| skip_with_error_test.cc | Loading commit data... | |
| templated_fixture_test.cc | Loading commit data... | |
| user_counters_tabular_test.cc | Loading commit data... | |
| user_counters_test.cc | Loading commit data... |