This commit is contained in:
Siarhei Fedartsou 2024-06-19 09:01:46 +02:00
parent f3095443f2
commit 073ad0c783

View File

@ -289,22 +289,22 @@ void runRouteBenchmark(const OSRM &osrm, const GPSTraces &gpsTraces, int iterati
std::optional<double> radius = std::nullopt; std::optional<double> radius = std::nullopt;
}; };
std::vector<Benchmark> benchmarks = { std::vector<Benchmark> benchmarks = {
{"10000 routes, 3 coordinates, no alternatives, overview=full, steps=true", {"1000 routes, 3 coordinates, no alternatives, overview=full, steps=true",
3, 3,
RouteParameters::OverviewType::Full, RouteParameters::OverviewType::Full,
true, true,
std::nullopt}, std::nullopt},
{"10000 routes, 2 coordinates, 3 alternatives, overview=full, steps=true", {"1000 routes, 2 coordinates, 3 alternatives, overview=full, steps=true",
2, 2,
RouteParameters::OverviewType::Full, RouteParameters::OverviewType::Full,
true, true,
3}, 3},
{"10000 routes, 3 coordinates, no alternatives, overview=false, steps=false", {"1000 routes, 3 coordinates, no alternatives, overview=false, steps=false",
3, 3,
RouteParameters::OverviewType::False, RouteParameters::OverviewType::False,
false, false,
std::nullopt}, std::nullopt},
{"10000 routes, 2 coordinates, 3 alternatives, overview=false, steps=false", {"1000 routes, 2 coordinates, 3 alternatives, overview=false, steps=false",
2, 2,
RouteParameters::OverviewType::False, RouteParameters::OverviewType::False,
false, false,
@ -312,7 +312,7 @@ void runRouteBenchmark(const OSRM &osrm, const GPSTraces &gpsTraces, int iterati
runBenchmarks(benchmarks, runBenchmarks(benchmarks,
iterations, iterations,
10000, 1000,
osrm, osrm,
gpsTraces, gpsTraces,
[](int iteration, [](int iteration,
@ -372,13 +372,13 @@ void runMatchBenchmark(const OSRM &osrm, const GPSTraces &gpsTraces, int iterati
std::optional<size_t> radius = std::nullopt; std::optional<size_t> radius = std::nullopt;
}; };
std::vector<Benchmark> benchmarks = {{"1000 matches, default radius"}, std::vector<Benchmark> benchmarks = {{"500 matches, default radius"},
{"1000 matches, radius=10", 10}, {"500 matches, radius=10", 10},
{"1000 matches, radius=20", 20}}; {"500 matches, radius=20", 20}};
runBenchmarks(benchmarks, runBenchmarks(benchmarks,
iterations, iterations,
1000, 500,
osrm, osrm,
gpsTraces, gpsTraces,
[](int iteration, [](int iteration,