Browse Source

test/path_benchmark.cpp: Add another benchmark

pull/7678/head
Gleb Mazovetskiy 1 year ago committed by Anders Jenbo
parent
commit
471a448f09
  1. 39
      test/path_benchmark.cpp

39
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

Loading…
Cancel
Save