blob: ff0519b6bae65ec4b828bc57935a08180da1c5bc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <benchmark/benchmark.h>
static void BM_Baseline(benchmark::State& state) {
for (auto _ : state) {
__asm__("nop");
}
}
BENCHMARK(BM_Baseline);
static void BM_Treatment(benchmark::State& state) {
for (auto _ : state) {
__asm__("nop");
}
}
BENCHMARK(BM_Treatment);
BENCHMARK_MAIN();
|