libcopp 2.3.1
Loading...
Searching...
No Matches
benchmark.cpp
Go to the documentation of this file.
1// Copyright 2021 atframework
2
3#include <benchmark/benchmark.h>
4
5#include <atomic>
6
7static void BM_SomeFunction(benchmark::State& state) {
8 // Test for benchmark_main
9 std::atomic<int> a;
10 ++a;
11}
12// Register the function as a benchmark
14// Run the benchmark
BENCHMARK_MAIN()
static void BM_SomeFunction(benchmark::State &state)
Definition benchmark.cpp:7
BENCHMARK(BM_SomeFunction)