wip
This commit is contained in:
parent
60e133fb12
commit
129cddda93
@ -1,4 +1,4 @@
|
|||||||
from locust import HttpUser, TaskSet, task, between
|
from locust import FastHttpUser, TaskSet, task, between
|
||||||
import csv
|
import csv
|
||||||
import random
|
import random
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
@ -68,6 +68,6 @@ class OSRMTasks(TaskSet):
|
|||||||
|
|
||||||
self.client.get(f"/trip/v1/driving/{coords_str}?steps=true", name="trip")
|
self.client.get(f"/trip/v1/driving/{coords_str}?steps=true", name="trip")
|
||||||
|
|
||||||
class OSRMUser(HttpUser):
|
class OSRMUser(FastHttpUser):
|
||||||
tasks = [OSRMTasks]
|
tasks = [OSRMTasks]
|
||||||
wait_time = between(0.1, 1)
|
wait_time = between(0.1, 1)
|
||||||
|
@ -79,7 +79,8 @@ def main():
|
|||||||
markdown_table = create_markdown_table(benchmark_results)
|
markdown_table = create_markdown_table(benchmark_results)
|
||||||
new_benchmark_section = f"""
|
new_benchmark_section = f"""
|
||||||
<!-- BENCHMARK_RESULTS_START -->
|
<!-- BENCHMARK_RESULTS_START -->
|
||||||
<details><summary>Benchmark Results</summary>
|
<details><summary><h2>Benchmark Results</h2></summary>
|
||||||
|
|
||||||
{markdown_table}
|
{markdown_table}
|
||||||
</details>
|
</details>
|
||||||
<!-- BENCHMARK_RESULTS_END -->
|
<!-- BENCHMARK_RESULTS_END -->
|
||||||
|
@ -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"
|
./$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"
|
BINARIES_FOLDER="$FOLDER/build"
|
||||||
echo "PWD: $FOLDER"
|
|
||||||
cp ~/data.osm.pbf $FOLDER
|
cp ~/data.osm.pbf $FOLDER
|
||||||
$BINARIES_FOLDER/osrm-extract -p $FOLDER/profiles/car.lua $FOLDER/data.osm.pbf
|
$BINARIES_FOLDER/osrm-extract -p $FOLDER/profiles/car.lua $FOLDER/data.osm.pbf
|
||||||
$BINARIES_FOLDER/osrm-partition $FOLDER/data.osrm
|
$BINARIES_FOLDER/osrm-partition $FOLDER/data.osrm
|
||||||
|
Loading…
Reference in New Issue
Block a user