summaryrefslogtreecommitdiffhomepage
path: root/bench/noop.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-11-06 18:31:59 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-11-06 18:32:31 +0100
commit5240a5c28a5225c4c1ebd02eb97c902e10d65657 (patch)
tree54b42729ea3d9c98856968b761eae256439923f6 /bench/noop.cpp
parented44ea64a8928d0df162a5cce932eef9bbb5ff55 (diff)
bbb
Diffstat (limited to 'bench/noop.cpp')
-rw-r--r--bench/noop.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/bench/noop.cpp b/bench/noop.cpp
new file mode 100644
index 00000000..ca84944a
--- /dev/null
+++ b/bench/noop.cpp
@@ -0,0 +1,15 @@
+#include <benchmark/benchmark.h>
+
+#if 0
+namespace {
+
+void noop(benchmark::State& state)
+{
+ for (auto _ : state)
+ (void)0;
+}
+
+BENCHMARK(noop);
+
+} // namespace
+#endif