options_test.cc 497 B

123456789101112131415161718
  1. #include "benchmark/benchmark_api.h"
  2. void BM_basic(benchmark::State& state) {
  3. while (state.KeepRunning()) {
  4. }
  5. }
  6. BENCHMARK(BM_basic);
  7. BENCHMARK(BM_basic)->Arg(42);
  8. BENCHMARK(BM_basic)->Range(1, 8);
  9. BENCHMARK(BM_basic)->DenseRange(10, 15);
  10. BENCHMARK(BM_basic)->ArgPair(42, 42);
  11. BENCHMARK(BM_basic)->RangePair(64, 512, 64, 512);
  12. BENCHMARK(BM_basic)->MinTime(0.7);
  13. BENCHMARK(BM_basic)->UseRealTime();
  14. BENCHMARK(BM_basic)->ThreadRange(2, 4);
  15. BENCHMARK(BM_basic)->ThreadPerCpu();
  16. BENCHMARK_MAIN()