diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-11 08:28:17 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-11 13:12:53 +0200 |
| commit | a71d2c6b2ed5b558485eaa234513a2ce9f153dba (patch) | |
| tree | 3db3c5afaac92e27c558d6c0020e8f2fe7e68694 /bench/raycast.cpp | |
| parent | 9ebe54046fe3f0d8759973b1f9117269adeae099 (diff) | |
bench: speed up when built with -O0
Diffstat (limited to 'bench/raycast.cpp')
| -rw-r--r-- | bench/raycast.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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 |
