Skip to main content

Benchmarking

GeoBrix ships a benchmark suite. It times each function at every implementation level a compute offers, on the same inputs. It also checks that the levels give the same output.

This page is the method and the measured matrix. For guidance on which compute and surface to use, see Performance.

Runtime support and benchmark environment

GeoBrix is supported on DBR 17.3 LTS, 18 LTS and 19 LTS. Each result below states the runtime it ran on. The stamp records the run. It does not say that another supported runtime is faster or slower.

What the suite measures​

Levels. A function can run at up to four levels.

LevelImplementation
L0SQL expression (no UDF, no JAR)
L1JVM Catalyst expression (needs the JAR)
L3Python (no JAR)
L4Unity Catalog function

Timing models. Each function runs under two models.

  • Pure-core. The operation in isolation. It opens one tile, calls the function and measures. There is no Spark and no serialization in the path.
  • Spark-path. The registered function over a DataFrame of N rows. It includes the per-row overhead of the level. It sweeps a row ladder, for example 10, 100, 1,000 and 10,000 rows.

Both models run --warmup untimed passes, then --measured timed passes. The reported figure is the median of the timed passes. Locally the defaults are 2 and 5. On a cluster they are 1 and 3 for pure-core, and 1 and 1 for spark-path.

Consistency. Every pure-core result carries an output fingerprint of per-band statistics. The levels are then compared:

  • exact. Every statistic is bitwise equal.
  • within_tol. Every statistic agrees to a relative or absolute tolerance of 1e-3.
  • divergent. Neither tolerance holds.

Computes. Compare times within one compute. The suite runs on:

  • Dedicated and standard clusters, where a fixed set of workers gives repeatable seconds.
  • Serverless, where workers scale with the job. Read a Serverless run for single-task time, per-task memory and per-task failures (out of memory) only. Do not compare forms, scales or computes from its job times, and do not compare it with seconds from a fixed cluster.
  • A SQL warehouse, for Unity Catalog functions.

Corpus. The suite generates a seeded corpus of GeoTIFF tiles, with a manifest. --tile-px, --bands, --dtypes, --srids and --nodata-frac shape it. The row pool is generated once and reused by every level, so the levels compare fairly. Generate it on Databricks with gbx:bench:gen-data --on-databricks.

note

The benchmark runs from the GeoBrix source repository. It uses the repository's gbx:bench:* commands and a job notebook. A wheel-only install does not include these tools.

Running on a cluster​

A cluster run executes every level on the same hardware, against the same corpus. Results append to a bench_results Delta table. A comparison.csv and a summary.md land on the configured Volume.

Prerequisites​

Provision a compute and stage the artifacts as the installation guide describes.

ComputeArtifacts
Dedicated, DBR 17.3, 18 or 19The env wheel, the GeoBrix JAR and the bench tests JAR (geobrix-*-tests.jar), all as cluster libraries
Standard, ARM, or ServerlessThe env wheel for the runtime (+env6 on Serverless environment 6 and DBR 19, +env5 on environment 5 and DBR 17.3 and 18)

Then fill in examples/tests/databricks_cluster_config.env with your cluster ID and Volume paths.

Run​

# Spark-path ladder on a provisioned cluster
bash scripts/commands/gbx-bench-cluster.sh \
--cluster-id <your-cluster-id> \
--run-id cluster-2026-11 \
--modes both \
--row-counts 10,100,1000,10000

The levels leg times each form of one function set at every level the compute offers. It runs without the tests JAR:

# The raster read forms on a dedicated cluster, at the set's own scales
bash scripts/commands/gbx-bench-cluster.sh --profile <name> \
--existing-cluster-id <cluster-id> --levels IO --levels-only \
--run-id levels-io-ded

# The same forms on Serverless environment 6
bash scripts/commands/gbx-bench-cluster.sh --profile <name> --serverless \
--env-version 6 --levels IO --levels-only --run-id levels-io-s6
OptionPurpose
--modes pure-core | spark-path | bothThe timing model. Default both.
--row-counts 10,100,1000,10000The spark-path row ladder. Each value is the number of distinct tiles in one timed iteration. The largest value must not exceed the corpus row pool.
--set core | fullThe representative set, or every benchmarked function. Default core.
--functions rst_slope,rst_ndviRestrict the run to these functions. It overrides --set.
--levels S|G|A|H|SE|IOAdd the levels leg for one set: session functions, generators, aggregates, helpers, the GDAL spec engine rows, or the raster read forms.
--levels-scales 1,4,16The multiples of each form's base row count. Each set has its own default ladder.
--levels-forms b,d-py,floorTime only these forms.
--levels-uc <catalog.schema>Where the Unity Catalog functions live. Without it, the L4 forms record a skipped row.
--serverless, --env-version <N>Submit to Serverless, pinned to environment version N.
--warmup / --measuredWarmup and measured iteration counts.
--no-waitSubmit the job and return.

A spark-path iteration processes max(--row-counts) distinct tiles. If the corpus pool is smaller, the run refuses rather than under-fill. Generate a larger pool or lower the ladder.

Every levels form prints START, DONE and RUNNING lines in the job notebook, so a long run shows its progress.

Output​

  • bench_results Delta table. Every measured row, tagged with environment and run ID.
  • summary.md and comparison.csv on the Volume. The speedup and consistency report.

Each levels row also records the compute and the bytes sent to and from Python workers. It records Python-worker task-seconds, shuffle and spill bytes, peak execution memory and the Python workers' peak memory.

Running locally​

The local pipeline generates the corpus, runs the JVM level in the geobrix-dev container and the Python level in an isolated virtual environment, then compares them. Local runs time one tile for pure-core. Row ladders at scale belong on a cluster.

# Generate the corpus, run both levels, compare
bash scripts/commands/gbx-bench-all.sh --run-id local-1 --modes pure-core

The two legs run one after the other, so they do not contend for CPU. Outputs land in test-logs/bench/<run-id>/.

--set core runs a small set that covers each family. --set full runs every benchmarked function. The set controls how many functions run. Pure-core is the timing model. They are independent.

For the raster read forms, time them locally before a cluster round:

# Three sizes on local[8]; exits 1 when a form does not scale with n
bash scripts/commands/gbx-bench-local-timing.sh --set IO
Corpus optionPurpose
--tile-px 256,512,1024,2048Tile sizes in pixels per side. Default 256,512.
--bands 1,4Band counts. Default 2.
--dtypes uint8,int16,float32Pixel types. These three are the full set. Default float32.
--srids 4326,3857,32618,27700Projections. These four are the full set. Default 4326,32618.
--nodata-frac 0.0,0.25Fraction of NoData pixels, from 0.0 to 1.0. Default 0.0.
--row-countsThe spark-path row ladder. Default 2,4 locally.

The stages are also standalone commands: gbx:bench:gen-data, gbx:bench:heavyweight, gbx:bench:lightweight and gbx:bench:compare.

Reading the output​

The comparison summary.md opens with insights: the biggest differences, a consistency tally and the tile scale. A per-function table follows.

fnhw_iter_slw_iter_shw_per_tile_slw_per_tile_sspeedupconsistency
rst_dtmfromgeoms_agg175.109.940.175100.0099417.61within_tol
rst_slope7.317.570.007310.007570.97timing-only
  • hw_iter_s, lw_iter_s. The median wall-clock of one full iteration over all N tiles. hw is the JVM level and lw is the Python level.
  • hw_per_tile_s, lw_per_tile_s. The iteration time divided by N.
  • speedup. The JVM time divided by the Python time. A value above 1 means the Python level is faster.
  • consistency. The label defined above. timing-only means the output cannot be fingerprinted for a direct comparison, as with readers and metadata accessors.

A pure-core summary uses hw_ms, lw_ms and megapixels per second instead. Each level also writes its own summary.

Results​

Levels by function​

Each row compares the JVM form with the best Python form of the same function. The cluster is dedicated: one driver and four m5d.2xlarge workers on DBR 19. The ratio is JVM time divided by Python time, at 4x and 16x the base row count. A value below 1 means the JVM form is faster. A JVM form stays, and becomes the default, when it is at least 1.2x faster at 4x or 16x and gives the same decoded output. Rows marked with three iterations are medians of three. The others are single samples.

Function4x16xOutcome
gbx_st_transformcrs0.170.16JVM default
gbx_rst_fromcontent (five iterations, against the Arrow Python form)0.22not runJVM default
gbx_st_triangulate (five iterations, against the Arrow Python form)0.620.40JVM default
gbx_st_interpolateelevationbbox (five iterations, against the Arrow Python form)0.780.55JVM default
gbx_bng_tessellateexplode0.420.45JVM default
gbx_bng_tessellate0.470.46JVM default
gbx_bng_cellfill (three iterations)0.710.73JVM default
gbx_bng_kring (three iterations)0.820.79JVM default
gbx_rst_bng_rasterize_agg, cell inputnot run0.40JVM default
gbx_rst_bng_rasterize_agg, group inputnot run0.50JVM default
gbx_rst_boundingbox (five iterations, against the Arrow Python form)0.79not runJVM default for a materialized tile; a virtual tile goes to the Python level
gbx_rst_worldtorastercoordy (13 iterations over three runs, against the Arrow Python form)0.850.82JVM default for a materialized tile; a virtual tile goes to the Python level
gbx_rst_crs, gbx_rst_format, gbx_rst_height, gbx_rst_memsize, gbx_rst_numbands, gbx_rst_pixelheight, gbx_rst_pixelwidth, gbx_rst_rotation, gbx_rst_scalex, gbx_rst_scaley, gbx_rst_skewx, gbx_rst_skewy, gbx_rst_srid, gbx_rst_upperleftx, gbx_rst_upperlefty, gbx_rst_width, gbx_rst_rastertoworldcoordx, gbx_rst_rastertoworldcoordy, gbx_rst_worldtorastercoordx (three to five iterations, against the Arrow Python form)0.83 to 0.950.83 to 0.91JVM form removed (under the 1.2x bar)
gbx_rst_avg0.590.65JVM form removed (an array result cannot take the routing function)
gbx_bng_eastnorthasbng (three iterations)1.171.35JVM form removed
gbx_rst_gridfrompoints (three iterations)1.781.91JVM form removed
gbx_st_asmvt1.672.94JVM form removed
gbx_rst_binpoints1.851.68JVM form removed
gbx_rst_cog_convert1.251.46JVM form removed
gbx_rst_align_to1.61not runJVM form removed
gbx_rst_slope0.971.05JVM form removed
gbx_rst_mapalgebra1.051.15JVM form removed
gbx_rst_transformcrs0.990.78JVM form removed (it returned NULL tiles for some of 4000 tiles under load; the Python forms returned none)
gbx_rst_combineavg and the six other gbx_rst_combine* functions (three iterations, gbx_rst_combineavg measured)1.081.49JVM form removed
gbx_rst_bng_tessellate0.971.03JVM form removed (a tie, under the 1.2x bar)

On a standard cluster, the Java UDF of gbx_bng_eastnorthasbng was also slower. It took 1.9x the time of the Python batch form at 4 million rows (3.24 s against 1.70 s). At 16 million rows it took 1.3x (5.42 s against 4.27 s). The function now has a SQL form that needs no JAR, with the Python batch form as the fallback.

The same rule decides each raster accessor that returns one value. Against the Python form that moves tiles in Arrow batches, two keep the JVM form: gbx_rst_boundingbox and gbx_rst_worldtorastercoordy. The other 19 stayed under the 1.2x bar, so they have no JVM form. A function that keeps it runs on the JVM for a materialized tile. A virtual tile runs at the Python level. A SQL function routes the two. An accessor or statistic that returns an ARRAY<...>, MAP<...> or STRUCT<...> can sit under explode or inline, where that routing function is refused and a virtual tile would raise. These have no JVM form, even where it was faster, as gbx_rst_avg was.

On Serverless, the grouped merge of tiles with bytes failed at every size tried, and the by-reference form ran. Read this as a per-task failure, not as a timing.

Raster read​

The raster reader returns virtual tiles by default. With virtualTiles=false it decodes whole files in bounded batches of at most 64 MiB. A file over the worker read cap fails the read with a retile Fix:.

The table shows the last full ladder on a dedicated cluster. The tiles are 1024 by 1024 GeoTIFF. The unit is seconds. Lower is faster.

Form1,000 tiles4,000 tiles10,000 tiles
The retired Scala reader103.90335.87866.09
raster_gbx reader40.61178.73400.85
Bytes-free decode (d-py)29.58122.35329.67
Floor (read the files, decode nothing)7.3922.2753.07

The Scala reader was 2.6x to 3.5x slower than the bytes-free Python decode at every scale, so 0.6.0 retired it. The raster_gbx figures come from before the reader decoded in bounded batches. The batched reader is not yet re-measured at this scale. A local ladder shows it at 0.4x to 0.6x of the bytes-free form.

The rows are one compute. Do not put Serverless seconds beside them.

Reader plan-time listing​

Before it reads a tile, the reader lists the source directory to plan the tile windows. The default listing is a walk without file stats. It plans about 10,000 files in 1.5 s on a Volume. It runs once at plan time, even with virtualTiles=true.

Measured on a 10,002-file corpus on a dogfood workspace, driver side, warm run:

MethodMedian (s)Compared with the default
Default directory listingAbout 1.5Baseline
Pre-computed manifest or tile table0.037About 37x faster

A manifest or tile table skips the walk and the header opens. Planning becomes one file or table read, whatever the tile count. This is an optional gain. It helps most when you already keep a tile index, or when a job repeats very many times.

A Delta table with a FILE column resolves each tile reference in the scan, with no per-tile open. A directory scan opens each tile on the worker. See the capability tiers and Serverless & Memory.

# Option 1: a manifest (JSON or Parquet) with a path and window per tile
df = spark.read.format("raster_gbx") \
.option("manifest", "/Volumes/catalog/schema/vol/tiles.json") \
.option("virtualTiles", "true") \
.load("/Volumes/catalog/schema/vol/rasters")

# Option 2: a tile index in a Delta table. It is a saved file listing, not tile pixels.
from databricks.labs.gbx.ds.raster import read_tiles_table

df = read_tiles_table(
spark, "geospatial.myschema.tile_index", {"virtualTiles": "true"}
)

Virtual and materialized input tiles​

A virtual tile saves work when an operation is deferred. Metadata reads and edits (set CRS, set SRID, NoData, band select) finish from the header, without reading pixels. Chain deferred edits before a materializing step to pay the pixel cost once.

Environment: Databricks · DBR 18.x · 20 workers · 512 by 512, 4-band float32 tiles · 1,000 tiles per iteration.

DispositionResult for a virtual tile
DeferredAbout 1.5x faster on average. The edits that carry no pixel work (rst_setsrid, rst_setcrs, rst_initnodata, rst_band) run 4.7x to 12.5x faster.
MaterializedAbout 2x slower. Every pixel is read, so the path and window indirection is overhead.
Not a single-tile operationThe grouped aggregates sit at parity. The byte constructors swing with how the bytes arrive: rst_fromcontent 2.8x faster, rst_tryopen about 4x slower.
FunctionMaterialized (ms per tile)Virtual (ms per tile)Virtual is faster by
rst_initnodata12.491.0012.5x
rst_setsrid11.250.9511.8x
rst_setcrs11.511.0411.1x
rst_band4.771.004.7x
rst_scalex3.241.751.9x
rst_srid2.922.221.3x
rst_slope3.8312.960.30x (slower)
rst_ndvi3.5712.750.28x (slower)

FILE versus FUSE: large-COG multi-window results​

Without open amortization, FILE is not a throughput gain. FUSE's flat open cost and block-level I/O beat the per-tile HTTP stream setup. With amortization (the grouped executor and ORDER BY path), byte-range stream reads win by 10x to 290x. See Virtual tile read performance.

LegSetupFILE onFUSE (FILE off)FUSE advantage
High reuse1 COG of 648 MB, 1,000 windows27.4 s13.1 s2.1x
High reuse, misaligned window1 COG of 648 MB, about 840 by 384 px windows26.7 s18.9 s1.42x
High reuse, 2.5 GB COG1 COG of 2.58 GB, 1,000 windows of 256 px22.8 s16.7 s1.37x
Low reuse25 COG copies of 648 MB, 1 window each16.2 s1.4 s11.4x
Real COG, NAIP (DEFLATE, 512 px blocks)324 MB, 1,000 windows of 256 px23.4 s16.2 s1.44x
Real COG, Sentinel-2 (DEFLATE, 1024 px blocks)22 MB, 1,000 windows of 256 px19.4 s17.7 s0.91x (a wash)

NetCDF readers​

The netcdf_gbx benchmark has two legs, one for each data shape.

  • Raster leg. netcdf_gbx in raster mode reads a directory of regular-grid .nc granules. The benchmark counts the (source, tile) rows it emits. It decodes CF scale_factor and add_offset to physical values.
  • Vector leg. netcdf_gbx in vector mode reads a directory of Sentinel-5P L2 CH4 swath granules. It measures how fast the reader turns swath cells into points.

Stage each corpus once, apart from the read:

from databricks.labs.gbx.bench import readers
# NASA-NEX GDDP-CMIP6 regular 0.25-degree grids, anonymous on Planetary Computer.
readers.stage_nasanex_corpus(spark, f"{CORPUS}/netcdf",
bbox=[-104.5, 31.0, -101.5, 33.0],
temporal="2021-01-01/2021-01-08",
variables=("tas",))

# Sentinel-5P L2 CH4 swaths, anonymous on Planetary Computer.
readers.stage_netcdf_corpus(spark, f"{CORPUS}/netcdf-swath",
bbox=[-104.5, 31.0, -101.5, 33.0],
temporal="2021-01-01/2021-01-08")

If a pool is empty or missing, that leg skips with a message and the run goes on. Run the leg with gbx:bench:cluster --netcdf-only --row-counts 1000.

NetCDF writer​

The netcdf_gbx writer has two legs for its two write modes. Run both with gbx:bench:cluster --netcdf-writer-only --row-counts 1000.

  • Raster leg. Each (source, tile) row becomes one CF grid .nc file. It measures whole-job wall-clock over 1,000 rows.
  • Vector leg. Each Spark partition becomes one CF .nc file. The input is points derived from the Sentinel-5P swaths.

Each mode runs three write shapes, recorded as separate rows:

  • parts (default). One .nc file per row or per partition.
  • singleFile (singleFile=true). The partition fragments merge into one .nc on the driver.
  • merge (merge=true keepParts=true). A fold of the parts already on disk, without re-running the DataFrame.

Tiled output (PMTiles writer)​

The PMTiles writer packages a tile pyramid into one .pmtiles archive. The pmtiles_gbx writer takes a (z, x, y, bytes) input. The benchmark writes 1,000 tiles to one archive. Run it with gbx:bench:cluster --pmtiles-only --row-counts 1000.

Environment: Databricks · DBR 17.3 LTS · 1,000 synthetic PNG tiles to one archive · whole-job wall-clock median.

WriterWhole-job median (1,000 tiles)
pmtiles_gbx18.4 s

The writer has two phases. Executors write intermediates, then the driver assembles the archive. The intermediates sit on a shared filesystem, not on node-local disk.

The pmtiles_agg aggregate folds a group of (tile, z, x, y) rows into one archive per key. On a dedicated cluster a JVM aggregate ran at 0.81x to 0.91x the speed of the Python one, with the same tiles. So the JAR holds no JVM form of it.

Vector readers​

The vector readers run on a scaled corpus. It holds five files of 1,000,000 features each, about 5 million polygons per format. The benchmark reads them from a Volume into a Delta table, one measured iteration per format. Cluster: DBR 17.3 LTS. Run it with gbx:bench:cluster --vector-only --vector-scale.

FormatRows*_gbx reader
GeoJSON, FeatureCollection (multi=false)5M29.6 s
GeoJSON, GeoJSONSeq (multi=true)5M31.9 s
Shapefile5M27.8 s
GeoPackage5M23.5 s
FileGDB1M13.8 s

The readers are Arrow-native: columnar pyogrio batches, with no per-row Python. They stage GeoPackage and FileGDB to worker-local temp for random-access reads. GeoJSON reads one partition per file, because the driver parses the whole FeatureCollection on each open. For each format the benchmark checks that the row counts match the source.

Vector writers​

The vector writers are all *_gbx writers. Each single-file writer writes a 14,000,000-feature Delta table to one file. The two-phase writer merges the partition fragments on the driver. Run it with gbx:bench:cluster --vector-only --vector-scale --vector-legs writer --writer-rows 14000000.

FormatRowsTimeThroughput
GeoJSON (single file)14M279.1 sAbout 50k rows/s
Shapefile (single file)14M152.6 sAbout 92k rows/s
GeoPackage (single file)14M155.9 sAbout 90k rows/s
FileGDB (single file)14M97.2 sAbout 144k rows/s
GeoJSONL (sharded, geojsonl_gbx)14M16.4 s (80 shards)About 855k rows/s

The single-file writers are driver-bound, because the merge runs on the driver. GeoJSON is slowest, because of text encoding. The sharded GeoJSONL writer skips the merge. It writes one shard per partition, in parallel, and runs about 17x faster than the single-file GeoJSON writer at 14M rows. It is the recommended writer for large output. maxRecordsPerFile caps the features per shard.

The FileGDB commit is the one single-file writer whose driver memory grows. GDAL's FileGDB writer keeps per-feature index state until the file closes. For the 14M polygons above, the driver's Python worker peaked at 1.9 GB of resident memory, about 120 bytes per feature. Size the driver for the feature count.

The format sets the limit, not GeoBrix. 14M box polygons sits near the Shapefile ceiling.

FormatCeilingCause
Shapefile2 GB per .shp or .dbf (about 15.8M box polygons)32-bit record offsets
GeoPackageAbout 17.6 TBSQLite page_size × max_page_count
FileGDB2.1 billion rows, 1 TB or more per feature classOBJECTID is a signed 32-bit integer
GeoJSONNone (RFC 7946)Text, bounded by disk and parse memory

Geometry-aware expansion at scale (geomkring, geomkloop)​

The geometry-aware functions grow grid rings outward from a geometry's covering set. This section shows how the output grows with the number of geometries N and the ring distance k. The inputs are synthetic building footprints. They come in five shapes (rectangle, L, U, courtyard with a hole, irregular) and three sizes (about 15, 50 and 200 m). They are scattered over a city-scale extent, so each building lands on its own cells.

Inputs: geomkring and geomkloop, boundary-out. Target cell size about 65 m: H3 resolution 10, quadbin 19, custom 65 m root cell, BNG resolution 4 (100 m, the nearest BNG step). H3 and quadbin use WGS84. Custom and BNG use EPSG:27700. The figures are cell counts, which do not depend on the compute. No seconds are reported, because a Serverless job time depends on the workers it got.

Headline. 10,000 footprints, H3 resolution 10, geomkring with boundary-out and k=10 produce 3,573,051 cells.

Cells across grids (10,000 buildings, k=10, geomkring):

GridResolution (about 65 m cell)Cells
H3Resolution 103,573,051
Custom65 m root (EPSG:27700)3,651,174
QuadbinResolution 194,951,123
BNGResolution 4 (100 m)4,762,643

H3 polyfill uses the C-backed polygon_to_cells_experimental, and its neighbor step is integer index math. Custom is a pure-Python lattice walk. Cell sizes and CRS differ per grid, so the cell counts differ.

Ring distance k (H3, 10,000 buildings):

kRing cellsLoop cells
1113,18184,430
51,050,901324,430
103,573,051624,430

The filled ring grows with about k squared. The hollow loop grows with about k. At k=10 the loop emits about 6x fewer cells.

Number of geometries N (H3 resolution 10, boundary-out, k=10):

Buildings (N)Cells
10035,774
1,000357,031
10,0003,573,051
100,00035,733,305

The cell count grows linearly with N. 100,000 footprints expand to 35.7M cells.

On courtyard footprints (buildings with an interior hole), hole-in with k=5 over 1,000 buildings emits 1,796 cells. They expand inward from each hole's edge.

LiDAR and EXIF readers and the LiDAR writer​

The lidar_gbx (LAS and LAZ point clouds) and exif_gbx (image EXIF and GPS) readers have one implementation each. These are single-level spark-path timings: read cost per file (header-only metadata), per point (lidar_gbx points), and with pixel decode (exif_gbx qc). The lidar_gbx writer is timed in its two output modes.

Environment: Databricks · DBR 18.x · classic (rd-fleet.xlarge) · synthetic corpus of 100 .laz files × 50,000 points and 100 JPEGs · median of the measured iterations after warmup. Run with gbx:bench:cluster --benchmark-lidar --benchmark-exif.

ReaderModeItemsMedianPer item
lidar_gbxmetadata (header only)100 files0.84 s8.4 ms per file
lidar_gbxpoints5,000,000 points1.09 sAbout 0.22 µs per point
exif_gbxmetadata (header only)100 files0.79 s7.9 ms per file
exif_gbxqc (decodes pixels)100 files1.66 s16.6 ms per file

Header-only metadata is the fast path for both readers. lidar_gbx points streams point rows in Arrow batches, so 5 million points read in about 1.1 s. exif_gbx qc adds sharpness and brightness from the decoded image, at about twice the metadata cost.

lidar_gbx writer modePointsMedian
parts (one .laz per partition)5,000,0006.3 s
singleFile (merged on the driver to one .laz)5,000,00031.6 s

parts is about 5x faster than singleFile at 5 million points, because singleFile funnels every partition through a driver merge. Use parts for large point clouds. Keep singleFile for small outputs that must land as one file.

Land-cover classification (rst_land_cover)​

rst_land_cover classifies a tile of three or more bands into per-pixel land-cover class IDs. It has one implementation, so these are absolute throughputs.

Environment: Python level, pure-core, synthetic RGB tile, n_clusters=6, smooth=3, measured locally.

Method256 by 256 (ms)512 by 512 (ms)1024 by 1024 (ms)Throughput
spectral5.319.374.1About 14 Mpix/s
hybrid (default)64.6276.61,238.7About 1 Mpix/s

spectral is a fast threshold pass. It runs about 15x faster than the default hybrid at 1024 by 1024. hybrid adds a k-means refinement that improves class boundaries. Choose spectral for throughput and hybrid for class quality.

Caveats​

  • Absolute timings depend on the machine, the corpus and the install. Treat the ratio and the consistency label as the durable signal.
  • Pure-core isolates the algorithm. Spark-path adds the per-row overhead of the level and predicts end-to-end job cost better. Use spark-path to decide which level a workload should run at.
  • Consistency is checked on output statistics with a tolerance, not on bytes. GDAL and NumPy can differ in the last bits. Neighborhood and NoData-boundary operations can differ on the one-pixel kernel border. The benchmark labels those divergent so they stay visible.