From a71d2c6b2ed5b558485eaa234513a2ce9f153dba Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 11 Apr 2024 08:28:17 +0200 Subject: bench: speed up when built with -O0 --- bench/raycast.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bench/raycast.cpp') diff --git a/bench/raycast.cpp b/bench/raycast.cpp index 63f4ad4a..f15c8b27 100644 --- a/bench/raycast.cpp +++ b/bench/raycast.cpp @@ -101,11 +101,10 @@ void Raycast(benchmark::State& state) for (int i = 0; i < 50; i++) test(); for (auto _ : state) - for (int i = 0; i < 1000; i++) - test(); + test(); } -BENCHMARK(Raycast)->Unit(benchmark::kMillisecond); +BENCHMARK(Raycast)->Unit(benchmark::kMicrosecond); } // namespace -- cgit v1.2.3