|
12345678910111213141516171819202122232425262728 |
- #include "benchmark/benchmark.h"
-
- #include <string.h>
-
- #include "vmath.h"
-
- static void BM_ValuePass(::benchmark::State& state)
- {
- for (auto _ : state) {
- // Generate a huge ini file in CWD
- state.PauseTiming();
- // Prepare
- state.ResumeTiming();
- }
- }
- BENCHMARK(BM_ValuePass)->Unit(::benchmark::kMillisecond);
-
- static void BM_PointerPass(::benchmark::State& state)
- {
- for (auto _ : state) {
- // Generate a huge ini file in CWD
- state.PauseTiming();
- // Prepare
- state.ResumeTiming();
- }
- }
- BENCHMARK(BM_PointerPass)->Unit(::benchmark::kMillisecond);
-
|