Skip to content

Commit 9d40b56

Browse files
committed
Make Performance tests
1 parent 471beb8 commit 9d40b56

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,31 @@ Folow the instruction of one of the backends:
1313
## Query
1414

1515
The API as available at http://localhost:9292/interpreter
16+
17+
## Performance
18+
19+
Test with the [Gironde, France](http://download.openstreetmap.fr/extracts/europe/france/aquitaine/gironde-latest.osm.pbf) extract (94MB).
20+
Test with generic index, running localy, 8 CPU, 8 GB RAM.
21+
22+
Test Query 1
23+
```
24+
[out:json][timeout:25];
25+
(
26+
nwr[highway=bus_stop][name];
27+
nwr[public_transport=platform];
28+
);
29+
out center meta;
30+
```
31+
32+
time curl 'http://localhost:9292/interpreter' -X POST -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' --data-raw 'data=%5Bout%3Ajson%5D%5Btimeout%3A25%5D%3B%0A(%0A++nwr%5Bhighway%3Dbus_stop%5D%5Bname%5D%3B%0A++nwr%5Bpublic_transport%3Dplatform%5D%3B%0A)%3B%0Aout+center+meta%3B'
33+
34+
| Backend | Setup | Query 1 |
35+
|----------------------------------|--------|---------|
36+
| Postgres+PostGIS / Osmosis | 10m11s | 5,7s |
37+
| DuckDB+Spatial / QuackOSM (1) | 2m00s | 2,4s |
38+
| Overpass API (2) | 8m49s | 3,1s |
39+
| Overpass API overpass-api.de (3) | - | 5,9s |
40+
41+
(1) Without metadata.
42+
(2) Required converion from PBF to XML included ().
43+
(3) Query with polygon to limit the spatial extent.

0 commit comments

Comments
 (0)