From 572506e13e46726f62fbd826d0eef3b8a7b62db6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 24 Mar 2024 16:23:56 +0100 Subject: b --- bench/critter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bench/critter.cpp') diff --git a/bench/critter.cpp b/bench/critter.cpp index 354c4f8b..3a238576 100644 --- a/bench/critter.cpp +++ b/bench/critter.cpp @@ -83,7 +83,7 @@ struct Grace { Ns time = Ns{250}; uint32_t distance_L2 = 24; - bool no_crash = false; + static constexpr bool no_crash = false; }; bool run(world& w, const function_view& make_dt, @@ -339,7 +339,7 @@ void test_critter() } } -void Critter_update_movement(benchmark::State& st) +void Critter_move(benchmark::State& st) { for (int i = 0; i < 2; i++) test_critter(); @@ -347,7 +347,7 @@ void Critter_update_movement(benchmark::State& st) test_critter(); } -BENCHMARK(Critter_update_movement)->Unit(benchmark::kMillisecond); +BENCHMARK(Critter_move)->Unit(benchmark::kMillisecond); } // namespace -- cgit v1.2.3