You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #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);
|