summaryrefslogtreecommitdiff
path: root/src/example.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/example.cpp')
-rw-r--r--src/example.cpp10
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();