summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/perf-geoData.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/perf-geoData.cpp b/test/perf-geoData.cpp
index 4d4505e..d9ea8c6 100644
--- a/test/perf-geoData.cpp
+++ b/test/perf-geoData.cpp
@@ -33,10 +33,25 @@ namespace {
});
}
}
+
+ void
+ terrain_deform(benchmark::State & state)
+ {
+ std::array<GlobalPosition3D, 3> points {{
+ {315555000, 495556000, 0},
+ {315655000, 495556000, 0},
+ {315655000, 495557000, 0},
+ }};
+ for (auto _ : state) {
+ auto geoData {tm};
+ benchmark::DoNotOptimize(geoData.setHeights(points, GeoData::SetHeightsOpts {.surface = nullptr}));
+ }
+ }
}
BENCHMARK(terrain_findPoint);
BENCHMARK(terrain_walk);
BENCHMARK(terrain_walkBoundary);
+BENCHMARK(terrain_deform);
BENCHMARK_MAIN();