summaryrefslogtreecommitdiffhomepage
path: root/bench/03-bitmask.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-11-06 18:31:59 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-11-06 18:32:31 +0100
commit5240a5c28a5225c4c1ebd02eb97c902e10d65657 (patch)
tree54b42729ea3d9c98856968b761eae256439923f6 /bench/03-bitmask.cpp
parented44ea64a8928d0df162a5cce932eef9bbb5ff55 (diff)
bbb
Diffstat (limited to 'bench/03-bitmask.cpp')
-rw-r--r--bench/03-bitmask.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/bench/03-bitmask.cpp b/bench/03-bitmask.cpp
deleted file mode 100644
index c8c698a6..00000000
--- a/bench/03-bitmask.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-#include "compat/assert.hpp"
-#include "src/anim-atlas.hpp"
-#include "loader/loader.hpp"
-#include <Corrade/Containers/Optional.h>
-#include <Magnum/Math/Functions.h>
-#include <Magnum/Trade/ImageData.h>
-#include <benchmark/benchmark.h>
-
-namespace floormat {
-
-namespace {
-
-[[maybe_unused]] void Bitmask(benchmark::State& state)
-{
- auto img = loader.texture(loader.SCENERY_PATH, "door-close"_s);
- auto bitmask = anim_atlas::make_bitmask(img);
- anim_atlas::make_bitmask_(img, bitmask);
-
- for (auto _ : state)
- anim_atlas::make_bitmask_(img, bitmask);
-}
-
-BENCHMARK(Bitmask)->Unit(benchmark::kMicrosecond)->ReportAggregatesOnly();
-
-} // namespace
-
-} // namespace floormat