summaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-03-24 16:23:56 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-03-24 16:23:56 +0100
commit572506e13e46726f62fbd826d0eef3b8a7b62db6 (patch)
treefab924c174ff95ce28972c0a4c99823a5830a33f /bench
parenta05920896fe900a77fe96b74ad5a3c7c86205489 (diff)
b
Diffstat (limited to 'bench')
-rw-r--r--bench/critter.cpp6
1 files changed, 3 insertions, 3 deletions
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<Ns() const>& 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