Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
perfetto
/
bc8368e4603c2cc1a17d758f3371a3681e5a5503
/
.
/
src
/
tracing
/
test
/
hello_world_benchmark.cc
blob: c554de9435dec2c0a0fa9225e897fb969b4c33e3 [
file
] [
log
] [
blame
]
#include
"benchmark/benchmark.h"
static
void
BM_StringCreation
(
benchmark
::
State
&
state
)
{
while
(
state
.
KeepRunning
())
std
::
string empty_string
;
}
// Register the function as a benchmark
BENCHMARK
(
BM_StringCreation
);