geotrellis / geotrellis-pointcloud

GeoTrellis PointCloud library to work with any pointcloud data on Spark
Apache License 2.0
26 stars 10 forks source link

Add a benchmark project #45

Closed pomadchin closed 4 years ago

pomadchin commented 4 years ago

This PR adds a benchmark project that compares DEMRasterSource that uses PDAL triangulation and that uses GeoTrellis triangulation.

This PR also benchmarks a split of PDALTrianglesRasterizer into a separate object, the results are below

/**
  * jmh:run -i 3 -wi 1 -f1 -t1 .*DEMRasterSourceBench.*
  *
  * [info] Benchmark                                                      Mode  Cnt        Score         Error  Units
  * [info] DEMRasterSourceReadAll                    avgt    3  1289156.313 ± 3962647.278  us/op
  * [info] GeoTrellisDEMRasterSourceReadAll          avgt    3  2727125.104 ± 4561499.533  us/op
  * [info] TriangulationSplitDEMRasterSourceReadAll  avgt    3  1236215.715 ± 1164712.450  us/op
  */

Warning: these are relative benchmarks created to track down regressions during the code change.

Related to https://github.com/geotrellis/geotrellis-pointcloud/issues/37

pomadchin commented 4 years ago

@jpolchlo merging thins, I didn't change any code in terms of this PR, only added a bench project.