diff --git a/scripts/ci/locustfile.py b/scripts/ci/locustfile.py index bd29d39e5..cabc4bfea 100644 --- a/scripts/ci/locustfile.py +++ b/scripts/ci/locustfile.py @@ -1,4 +1,4 @@ -from locust import HttpUser, TaskSet, task, between +from locust import FastHttpUser, TaskSet, task, between import csv import random from collections import defaultdict @@ -68,6 +68,6 @@ class OSRMTasks(TaskSet): self.client.get(f"/trip/v1/driving/{coords_str}?steps=true", name="trip") -class OSRMUser(HttpUser): +class OSRMUser(FastHttpUser): tasks = [OSRMTasks] wait_time = between(0.1, 1) diff --git a/scripts/ci/post_benchmark_results.py b/scripts/ci/post_benchmark_results.py index 44a52097f..339534a19 100644 --- a/scripts/ci/post_benchmark_results.py +++ b/scripts/ci/post_benchmark_results.py @@ -79,7 +79,8 @@ def main(): markdown_table = create_markdown_table(benchmark_results) new_benchmark_section = f""" -
Benchmark Results +

Benchmark Results

+ {markdown_table}
diff --git a/scripts/ci/run_benchmarks.sh b/scripts/ci/run_benchmarks.sh index fae93b1b3..62e25f68b 100755 --- a/scripts/ci/run_benchmarks.sh +++ b/scripts/ci/run_benchmarks.sh @@ -21,7 +21,7 @@ function run_benchmarks_for_folder { ./$BENCHMARKS_FOLDER/rtree-bench "./$FOLDER/test/data/monaco.osrm.ramIndex" "./$FOLDER/test/data/monaco.osrm.fileIndex" "./$FOLDER/test/data/monaco.osrm.nbg_nodes" > "$RESULTS_FOLDER/rtree.bench" BINARIES_FOLDER="$FOLDER/build" - echo "PWD: $FOLDER" + cp ~/data.osm.pbf $FOLDER $BINARIES_FOLDER/osrm-extract -p $FOLDER/profiles/car.lua $FOLDER/data.osm.pbf $BINARIES_FOLDER/osrm-partition $FOLDER/data.osrm