From 257569e8cafa48a3c8f7eed7ac5eae7194ec6fbf Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Sun, 19 May 2024 14:40:28 +0200 Subject: [PATCH] Improve map matching benchmark --- src/benchmarks/match.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/benchmarks/match.cpp b/src/benchmarks/match.cpp index 61676a0ad..83ef7ef1b 100644 --- a/src/benchmarks/match.cpp +++ b/src/benchmarks/match.cpp @@ -11,8 +11,6 @@ #include "osrm/status.hpp" #include - -#include #include #include #include @@ -255,11 +253,10 @@ try << std::endl; }; - run_benchmark(std::nullopt); - run_benchmark(5.0); - run_benchmark(10.0); - run_benchmark(15.0); - run_benchmark(30.0); + for (auto radius : std::vector>{std::nullopt, 5.0, 10.0, 15.0, 30.0}) + { + run_benchmark(radius); + } return EXIT_SUCCESS; }