diff --git a/src/libunicode/benchmark.cpp b/src/libunicode/benchmark.cpp index 33fc775..f80e18a 100644 --- a/src/libunicode/benchmark.cpp +++ b/src/libunicode/benchmark.cpp @@ -9,20 +9,20 @@ using std::string_view; template -static void benchmarkWithLength(benchmark::State& state) +static void benchmarkWithLength(benchmark::State& benchmarkState) { auto TestText = std::string(L, 'a') + "\u00A9"; - for (auto _: state) + for (auto _: benchmarkState) { benchmark::DoNotOptimize(unicode::detail::scan_for_text_ascii(TestText, L + 10)); } } template -static void benchmarkWithOffset(benchmark::State& state) +static void benchmarkWithOffset(benchmark::State& benchmarkState) { auto TestText = std::string(L, 'a') + "\U0001F600" + std::string(1000, 'a'); - for (auto _: state) + for (auto _: benchmarkState) { benchmark::DoNotOptimize(unicode::detail::scan_for_text_ascii(TestText, L + 10)); }