summaryrefslogtreecommitdiff
path: root/test/perf-geoData.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-11-05 13:07:32 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-11-05 13:07:40 +0000
commit04078dbb3fe4acd09d150e016c2b2e0d5d036950 (patch)
treea612b49c5be8104dafe403674716f3b3403e65ae /test/perf-geoData.cpp
parentRefactor to further simplify line/point operations (diff)
downloadilt-04078dbb3fe4acd09d150e016c2b2e0d5d036950.tar.bz2
ilt-04078dbb3fe4acd09d150e016c2b2e0d5d036950.tar.xz
ilt-04078dbb3fe4acd09d150e016c2b2e0d5d036950.zip
Add methods to walk the boundary of the terrain mesh
Diffstat (limited to 'test/perf-geoData.cpp')
-rw-r--r--test/perf-geoData.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/perf-geoData.cpp b/test/perf-geoData.cpp
index 2d79a90..4fed632 100644
--- a/test/perf-geoData.cpp
+++ b/test/perf-geoData.cpp
@@ -23,9 +23,20 @@ namespace {
});
}
}
+
+ void
+ terrain_walkBoundary(benchmark::State & state)
+ {
+ for (auto _ : state) {
+ tm.boundaryWalk([](auto heh) {
+ benchmark::DoNotOptimize(heh);
+ });
+ }
+ }
}
BENCHMARK(terrain_findPoint);
BENCHMARK(terrain_walk);
+BENCHMARK(terrain_walkBoundary);
BENCHMARK_MAIN();