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/bitmask.cpp | |
parent | 9ebe54046fe3f0d8759973b1f9117269adeae099 (diff) |
bench: speed up when built with -O0
Diffstat (limited to 'bench/bitmask.cpp')
-rw-r--r-- | bench/bitmask.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bench/bitmask.cpp b/bench/bitmask.cpp index 3fd4d77c..1156a9f7 100644 --- a/bench/bitmask.cpp +++ b/bench/bitmask.cpp @@ -17,11 +17,10 @@ void Bitmask(benchmark::State& state) anim_atlas::make_bitmask_(img, bitmask); for (auto _ : state) - for (int i = 0; i < 10; i++) - anim_atlas::make_bitmask_(img, bitmask); + anim_atlas::make_bitmask_(img, bitmask); } -BENCHMARK(Bitmask)->Unit(benchmark::kMillisecond); +BENCHMARK(Bitmask)->Unit(benchmark::kMicrosecond); } // namespace |