summaryrefslogtreecommitdiffhomepage
path: root/bench/03-bitmask.cpp
diff options
context:
space:
mode:
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