SPH
TestBenchmark.cpp
Go to the documentation of this file.
1 #include "bench/Session.h"
2 
3 using namespace Sph;
4 
5 
6 BENCHMARK("Test benchmark", "[testgroup]", Benchmark::Context& context) {
7  while (context.running()) {
8  Size sum = 0;
9  for (Size i = 0; i < 100000; ++i) {
11  }
12  }
13 }
uint32_t Size
Integral type used to index arrays (by default).
Definition: Globals.h:16
Benchmark.
INLINE T && doNotOptimize(T &&value)
Definition: Session.h:180
BENCHMARK("Test benchmark", "[testgroup]", Benchmark::Context &context)
constexpr Size sum()
Definition: Multipole.h:31
Definition: MemoryPool.h:5