summaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-05 14:44:58 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-06 03:51:59 +0100
commit024fbf24987dda293a628dce51141df0af400900 (patch)
treec87d310e7eb0df6688149d1a651139b655c9e7a8 /bench
parent31860896302ccbac677ac670c43c3b5b8b857192 (diff)
bench/test: switch to millisecond display (from microseconds)
Diffstat (limited to 'bench')
-rw-r--r--bench/bitmask.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/bench/bitmask.cpp b/bench/bitmask.cpp
index 1156a9f7..3fd4d77c 100644
--- a/bench/bitmask.cpp
+++ b/bench/bitmask.cpp
@@ -17,10 +17,11 @@ void Bitmask(benchmark::State& state)
anim_atlas::make_bitmask_(img, bitmask);
for (auto _ : state)
- anim_atlas::make_bitmask_(img, bitmask);
+ for (int i = 0; i < 10; i++)
+ anim_atlas::make_bitmask_(img, bitmask);
}
-BENCHMARK(Bitmask)->Unit(benchmark::kMicrosecond);
+BENCHMARK(Bitmask)->Unit(benchmark::kMillisecond);
} // namespace