From 471a448f09a6419d54cfed90d8a328d259437fc0 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sun, 26 Jan 2025 12:50:24 +0000 Subject: [PATCH] test/path_benchmark.cpp: Add another benchmark --- test/path_benchmark.cpp | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/test/path_benchmark.cpp b/test/path_benchmark.cpp index 0db673e23..84cd1007d 100644 --- a/test/path_benchmark.cpp +++ b/test/path_benchmark.cpp @@ -114,9 +114,48 @@ void BM_NoPath(benchmark::State &state) state); } +void BM_NoPathBig(benchmark::State &state) +{ + BenchmarkMap( + Map { + Size { 30, 30 }, + "##############################" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#............................#" + "#.....S......................#" + "##############################" + "#.....E......................#" + "##############################" }, + state); +} + BENCHMARK(BM_SinglePath); BENCHMARK(BM_Bridges); BENCHMARK(BM_NoPath); +BENCHMARK(BM_NoPathBig); } // namespace } // namespace devilution