diff options
| author | Dmitry Ilvokhin <d@ilvokhin.com> | 2025-08-26 22:19:54 +0100 |
|---|---|---|
| committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2025-08-26 22:19:54 +0100 |
| commit | d10b4c21779344acd57a60b059a941e4ebdf2b01 (patch) | |
| tree | 39c7a82b9355533b56a107bea8e0f3ce061a090a /src | |
| download | benchmarks-d10b4c21779344acd57a60b059a941e4ebdf2b01.tar.gz benchmarks-d10b4c21779344acd57a60b059a941e4ebdf2b01.tar.bz2 benchmarks-d10b4c21779344acd57a60b059a941e4ebdf2b01.zip | |
Initial commit
Make stub files for C++ benchmarks.
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(); |