From 582ac127f763f512c45f35e17b768487e3b51796 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 4 Nov 2023 17:07:58 +0000 Subject: Rename TerrainMesh to GeoData to drop inplace --- test/perf-geoData.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/perf-geoData.cpp (limited to 'test/perf-geoData.cpp') diff --git a/test/perf-geoData.cpp b/test/perf-geoData.cpp new file mode 100644 index 0000000..e1546c1 --- /dev/null +++ b/test/perf-geoData.cpp @@ -0,0 +1,18 @@ +#include +#include + +namespace { + const GeoData tm {GeoData::loadFromAsciiGrid(FIXTURESDIR "height/SD19.asc")}; + + void + terrain_findPoint(benchmark::State & state) + { + for (auto _ : state) { + benchmark::DoNotOptimize(tm.findPoint({315555, 495556})); + } + } +} + +BENCHMARK(terrain_findPoint); + +BENCHMARK_MAIN(); -- cgit v1.2.3