apache / incubator-baremaps

Create custom vector tiles from OpenStreetMap and other data sources with Postgis and Java.
baremaps.apache.org
Apache License 2.0
491 stars 56 forks source link

Add benchmarks #872

Open bchapuis opened 1 month ago

bchapuis commented 1 month ago

This PR is intended at improving the implementation of the geoparquet parser. It should not be merged due to licensing issues (JMH GPL).

bchapuis commented 1 month ago

@sebr72 As discussed, I added some benchmarks to baremaps. I also added a pure sequential spliterator (used in the read() method) to have a comparison point. I think this will help us better evaluate the performence. Here are the results when reading lots of small files.

Benchmark                        Mode  Cnt    Score   Error  Units
SmallFileBenchmark.read          avgt       545.925          ms/op
SmallFileBenchmark.readParallel  avgt       537.830          ms/op
sonarcloud[bot] commented 1 month ago

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint