diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/example.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/example.cpp b/src/example.cpp new file mode 100644 index 0000000..60ddf1f --- /dev/null +++ b/src/example.cpp @@ -0,0 +1,10 @@ +#include <benchmark/benchmark.h> + +static void BM_Noop(benchmark::State& state) { + for (auto _ : state) { + __asm__("nop"); + } +} +BENCHMARK(BM_Noop); + +BENCHMARK_MAIN(); |