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.

wrapper.cpp 617 B

12345678910111213141516171819202122232425262728
  1. #include "benchmark/benchmark.h"
  2. #include <string.h>
  3. #include "vmath.h"
  4. static void BM_ValuePass(::benchmark::State& state)
  5. {
  6. for (auto _ : state) {
  7. // Generate a huge ini file in CWD
  8. state.PauseTiming();
  9. // Prepare
  10. state.ResumeTiming();
  11. }
  12. }
  13. BENCHMARK(BM_ValuePass)->Unit(::benchmark::kMillisecond);
  14. static void BM_PointerPass(::benchmark::State& state)
  15. {
  16. for (auto _ : state) {
  17. // Generate a huge ini file in CWD
  18. state.PauseTiming();
  19. // Prepare
  20. state.ResumeTiming();
  21. }
  22. }
  23. BENCHMARK(BM_PointerPass)->Unit(::benchmark::kMillisecond);