userver: samples/hello_service/benchmarks/say_hello_bench.cpp
Loading...
Searching...
No Matches
samples/hello_service/benchmarks/say_hello_bench.cpp
#include "say_hello.hpp"
#include <string_view>
#include <benchmark/benchmark.h>
void HelloBenchmark(benchmark::State& state) {
for (auto _ : state) {
auto result = samples::hello::SayHelloTo("userver");
benchmark::DoNotOptimize(result);
}
});
}
BENCHMARK(HelloBenchmark);