isosweep Evaluate
Reference environment
MachineAWS EC2 c7i.metal-24xl (dedicated bare-metal server, no hypervisor); Linux-7.0.0-1018-aws-x86_64-with-glibc2.39; turbo disabled; governor performance; THP never
Instancec7i.metal-24xl
CPUIntel(R) Xeon(R) Platinum 8488C · 48 cores / 96 threads
Clock policyturbo disabled, governor performance, THP never
OSLinux-7.0.0-1018-aws-x86_64-with-glibc2.39 · kernel 7.0.0-1018-aws
MeasuredNovember 2026
Methodology
  • Identical input. Every tool contours the same in-memory float64 grid at the same iso-levels. Real datasets are checksummed (SHA-256) and decoded once. Synthetic fields are generated deterministically from a seed.
  • Computation only. All tools run in-process on a grid already in memory. Process start-up, file reading, file writing and plotting-object construction are all outside the timed region, for every tool.
  • Every library at its best. The fastest documented mode of each tool, plus thread-count sweeps for every multi-threaded tool, ours included. Only each tool's best result is reported.
  • Like-for-like output. Every tool returns assembled contour polylines (VTK's output goes through vtkStripper to get there). isosweep's time also includes converting the input to float32 and building its Python result objects, which counts against us.
  • Output cross-check. Each tool's output is compared with the consensus of the independent others: total and per-level contour length within 0.5%, vertex counts within 1%, with small allowances for saddle cells and for grid values lying exactly on a level, where tools legitimately resolve ties differently.
  • Statistics. One warm-up run, then 30 timed rounds per configuration, each round running every configuration once in a fresh random order. The median is reported; minimum, quartiles and run-to-run variation are recorded. A time whose variation exceeded 5% is marked ▲ and used as measured.
  • Measured once. Each combination of tool version, data, configuration and machine is measured once and kept. Later runs measure only what changed and re-measure every configuration of the other libraries on three small benchmarks, which must match the kept results (median within 3%) before any kept result is reused.
Libraries compared
ToolVersionConfiguration
GDAL3.13.3 and 3.14.0dev-fedfd3ec89The contour engine behind gdal_contour, QGIS, PostGIS ST_Contour and MapServer, timed through its fastest in-memory API: the GDAL_CG_* callback interface, which returns finished polylines without building OGR features (or GDALContourGenerateEx into an in-memory layer if that is faster). The release and the development code (which becomes 3.14) are built from source with identical options.
VTK9.6.2vtkFlyingEdges2D (+ vtkStripper for polylines), Kitware's fastest isocontourer. Sequential, and threaded with the best SMP backend and thread count.
ContourPy1.4.0The engine inside matplotlib. The serial algorithm with ChunkCombinedOffset + multi_lines (its fastest single-thread mode), and threaded with the best of a thread × chunk grid.
scikit-image0.26.0measure.find_contours, one call per level.

Not compared: matplotlib (its contour lines come from ContourPy, benchmarked directly; matplotlib adds plotting objects on top) and d3-contour (it returns filled ≥-level regions, not lines). Filled-band comparisons are not published yet.

Not benchmarked: commercial tools such as ArcGIS Pro, Global Mapper, FME, Surfer, MATLAB, Tecplot and the EDA suites. Commercial licences commonly restrict benchmarking or publishing results (MATLAB's licence, for example, prohibits benchmarking it to build software with similar functions), and most of these aren't available as embeddable engines. We're happy to run a side-by-side in your environment during an evaluation.

Results by domain — contour lines

Real third-party datasets (marked real data) where they exist, and deterministic synthetic fields modelled on specific industry workloads where production data is proprietary. Each domain links to its use-case page.

Terrain, bathymetry and map tiles

7 benchmarks · use case →

Dataset Grid · levels isosweep1 thread isosweep16 threads GDAL 3.14-dev1 threadGDAL 3.13.31 threadVTK Flying Edges1 threadContourPy1 threadscikit-image find_contours1 threadContourPy8 threadsVTK Flying Edges4 threads Speed-upvs fastest 1-thread Speed-upvs fastest overall
Copernicus 30 m DEM, 512 × 512 web-map tile window (Bernese Alps) real data 512 × 512 · every 20 m 15.8 ms 3.76 ms 69.9 ms 68.9 ms 144 ms 183 ms 515 ms 83.9 ms 75.5 ms 4.4× 18×
Copernicus 30 m DEM, Alps 2°×2° mosaic real data 7,200 × 7,200 · every 50 m 1.42 s 95.6 ms 7.11 s 7.10 s 26.8 s 20.2 s 58.6 s▲ 884 ms 14.8 s 5.0× 9.2×
Copernicus 30 m DEM, Alps 1° tile real data 3,600 × 3,600 · every 20 m 727 ms 53.2 ms 3.79 s 3.75 s 12.7 s 11.1 s 23.7 s 750 ms 6.08 s 5.2× 14×
Mid-Atlantic Ridge multibeam bathymetry (GMRT) real data 1,823 × 2,063 · every 100 m 151 ms 23.5 ms 611 ms 612 ms 3.16 s▲ 662 ms 2.52 s 76.3 ms 2.71 s 4.0× 3.2×
National-scale terrain contours 8,000 × 8,000 · 25 levels (interval 160) 245 ms 13.9 ms 1.78 s 1.76 s 3.93 s 6.29 s 15.7 s 261 ms 265 ms 7.2× 19×
Full SRTM 1-degree elevation tile 3,601 × 3,601 · 25 74.2 ms 6.75 ms 436 ms 432 ms 822 ms 1.28 s 2.12 s 91.0 ms 106 ms 5.8× 13×
On-demand web map contour tile 256 × 256 · 25 3.07 ms 1.54 ms 9.44 ms 9.34 ms 12.6 ms 8.41 ms 45.0 ms 6.15 ms 10.1 ms 2.7× 4.0×

Median wall-clock time per full extraction, in-process, identical in-memory grid and iso-levels for every tool, each in its fastest documented configuration; lower is better. All line tools return assembled polylines. "Fastest overall" compares our best (1 or 16 threads) with the best result of any other library at any thread count; the shaded cell is that library. Measured November 2026 on Intel(R) Xeon(R) Platinum 8488C (48 cores / 96 threads) — AWS EC2 c7i.metal-24xl (dedicated bare-metal server, no hypervisor); Linux-7.0.0-1018-aws-x86_64-with-glibc2.39; turbo disabled; governor performance; THP never. ▲ marks a time that varied more than 5% from run to run; it is used as measured. Methodology.

Exact configuration of each library
  • GDAL 3.14-dev (master) — Both versions built from source with identical options. callback = pure computation, points copied into a result buffer (as any caller must); generate_ex = native API into an in-memory layer (native result type), the layer reset before each call outside the clock. Published value = faster of the two. variant generate_ex {"api": "GDALContourGenerateEx (in-memory layer)"}
  • GDAL 3.13.3 — Both versions built from source with identical options. callback = pure computation, points copied into a result buffer (as any caller must); generate_ex = native API into an in-memory layer (native result type), the layer reset before each call outside the clock. Published value = faster of the two. variant generate_ex {"api": "GDALContourGenerateEx (in-memory layer)"}
  • VTK Flying Edges (1 thread) — vtkImageData + filter pipeline built in prepare (zero-copy wrap, O(1)). vtkStripper joins segments into polylines (required for like-for-like output; MaximumLength unlimited so lines are fully joined) and is timed. variant sequential {"backend": "Sequential", "threads": 1}
  • ContourPy (serial) — variant serial_reused {"name": "serial", "line_type": "LineType.ChunkCombinedOffset", "reuse_generator": true}
  • scikit-image find_contours — variant per_level {}
  • ContourPy (threaded, best threads × chunks) — variant threaded_reused {"name": "threaded", "line_type": "LineType.ChunkCombinedOffset", "thread_count": 8, "chunk_count": [4, 4], "reuse_generator": true}
  • VTK Flying Edges (best SMP backend × threads) — vtkImageData + filter pipeline built in prepare (zero-copy wrap, O(1)). vtkStripper joins segments into polylines (required for like-for-like output; MaximumLength unlimited so lines are fully joined) and is timed. variant smp {"backend": "STDThread", "threads": 4}

Weather and climate

6 benchmarks · use case →

Dataset Grid · levels isosweep1 thread isosweep16 threads GDAL 3.14-dev1 threadGDAL 3.13.31 threadVTK Flying Edges1 threadContourPy1 threadscikit-image find_contours1 threadContourPy64 threadsVTK Flying Edges16 threads Speed-upvs fastest 1-thread Speed-upvs fastest overall
GFS 0.25° global sea-level pressure (isobars) real data 1,440 × 721 · every 4 hPa 11.0 ms 3.60 ms 54.2 ms 53.7 ms 107 ms 135 ms 309 ms 31.1 ms 48.2 ms 4.9× 8.6×
GFS 0.25° global 2 m temperature (isotherms) real data 1,440 × 721 · every 1 °C 62.4 ms 18.1 ms 240 ms 240 ms 2.06 s 383 ms 1.29 s 85.8 ms 1.87 s 3.8× 4.7×
HRRR 3 km CONUS sea-level pressure (isobars) real data 1,799 × 1,059 · every 2 hPa 8.18 ms 2.21 ms 57.2 ms 56.7 ms 94.5 ms 164 ms 268 ms 28.3 ms 23.0 ms▲ 6.9× 10×
HRRR 3 km CONUS 2 m temperature (isotherms) real data 1,799 × 1,059 · every 1 °C 127 ms 35.5 ms 450 ms 453 ms 9.80 s 423 ms 1.72 s 71.5 ms 9.55 s 3.3× 2.0×
GFS isobar forecast loop 1,440 × 1,440 · 16 levels (interval 6) 7.76 ms 2.26 ms 57.9 ms 57.3 ms 77.7 ms 127 ms 227 ms 21.6 ms 18.5 ms▲ 7.4× 8.2×
HRRR temperature frontal analysis 1,799 × 1,799 · 26 levels (interval 2.5) 6.34 ms 1.70 ms 78.3 ms 77.1 ms 155 ms 302 ms 436 ms 43.5 ms 24.0 ms▲ 12× 14×

Median wall-clock time per full extraction, in-process, identical in-memory grid and iso-levels for every tool, each in its fastest documented configuration; lower is better. All line tools return assembled polylines. "Fastest overall" compares our best (1 or 16 threads) with the best result of any other library at any thread count; the shaded cell is that library. Measured November 2026 on Intel(R) Xeon(R) Platinum 8488C (48 cores / 96 threads) — AWS EC2 c7i.metal-24xl (dedicated bare-metal server, no hypervisor); Linux-7.0.0-1018-aws-x86_64-with-glibc2.39; turbo disabled; governor performance; THP never. ▲ marks a time that varied more than 5% from run to run; it is used as measured. Methodology.

Exact configuration of each library
  • GDAL 3.14-dev (master) — Both versions built from source with identical options. callback = pure computation, points copied into a result buffer (as any caller must); generate_ex = native API into an in-memory layer (native result type), the layer reset before each call outside the clock. Published value = faster of the two. variant generate_ex {"api": "GDALContourGenerateEx (in-memory layer)"}
  • GDAL 3.13.3 — Both versions built from source with identical options. callback = pure computation, points copied into a result buffer (as any caller must); generate_ex = native API into an in-memory layer (native result type), the layer reset before each call outside the clock. Published value = faster of the two. variant generate_ex {"api": "GDALContourGenerateEx (in-memory layer)"}
  • VTK Flying Edges (1 thread) — vtkImageData + filter pipeline built in prepare (zero-copy wrap, O(1)). vtkStripper joins segments into polylines (required for like-for-like output; MaximumLength unlimited so lines are fully joined) and is timed. variant sequential {"backend": "Sequential", "threads": 1}
  • ContourPy (serial) — variant serial_reused {"name": "serial", "line_type": "LineType.ChunkCombinedOffset", "reuse_generator": true}
  • scikit-image find_contours — variant per_level {}
  • ContourPy (threaded, best threads × chunks) — variant threaded_reused {"name": "threaded", "line_type": "LineType.ChunkCombinedOffset", "thread_count": 8, "chunk_count": [4, 4], "reuse_generator": true}
  • VTK Flying Edges (best SMP backend × threads) — vtkImageData + filter pipeline built in prepare (zero-copy wrap, O(1)). vtkStripper joins segments into polylines (required for like-for-like output; MaximumLength unlimited so lines are fully joined) and is timed. variant smp {"backend": "STDThread", "threads": 4}

Medical imaging

2 benchmarks · use case →

Dataset Grid · levels isosweep1 thread isosweep4 threads GDAL 3.14-dev1 threadGDAL 3.13.31 threadVTK Flying Edges1 threadContourPy1 threadscikit-image find_contours1 threadContourPy8 threadsVTK Flying Edges4 threads Speed-upvs fastest 1-thread Speed-upvs fastest overall
Adaptive RT isodose display 512 × 512 · 16 levels (interval 1/16) 1.00 ms 0.67 ms 7.44 ms 7.09 ms 9.92 ms 16.9 ms 30.5 ms 7.72 ms 4.95 ms 7.1× 7.4×
Vascular network segmentation 1,024 × 1,024 · 10 2.64 ms 1.11 ms 23.6 ms 23.4 ms 23.9 ms 42.8 ms 73.2 ms 9.77 ms 6.72 ms 8.9× 6.0×

Median wall-clock time per full extraction, in-process, identical in-memory grid and iso-levels for every tool, each in its fastest documented configuration; lower is better. All line tools return assembled polylines. "Fastest overall" compares our best (1 or 4 threads) with the best result of any other library at any thread count; the shaded cell is that library. Measured November 2026 on Intel(R) Xeon(R) Platinum 8488C (48 cores / 96 threads) — AWS EC2 c7i.metal-24xl (dedicated bare-metal server, no hypervisor); Linux-7.0.0-1018-aws-x86_64-with-glibc2.39; turbo disabled; governor performance; THP never. Methodology.

Exact configuration of each library
  • GDAL 3.14-dev (master) — Both versions built from source with identical options. callback = pure computation, points copied into a result buffer (as any caller must); generate_ex = native API into an in-memory layer (native result type), the layer reset before each call outside the clock. Published value = faster of the two. variant generate_ex {"api": "GDALContourGenerateEx (in-memory layer)"}
  • GDAL 3.13.3 — Both versions built from source with identical options. callback = pure computation, points copied into a result buffer (as any caller must); generate_ex = native API into an in-memory layer (native result type), the layer reset before each call outside the clock. Published value = faster of the two. variant generate_ex {"api": "GDALContourGenerateEx (in-memory layer)"}
  • VTK Flying Edges (1 thread) — vtkImageData + filter pipeline built in prepare (zero-copy wrap, O(1)). vtkStripper joins segments into polylines (required for like-for-like output; MaximumLength unlimited so lines are fully joined) and is timed. variant sequential {"backend": "Sequential", "threads": 1}
  • ContourPy (serial) — variant serial_reused {"name": "serial", "line_type": "LineType.ChunkCombinedOffset", "reuse_generator": true}
  • scikit-image find_contours — variant per_level {}
  • ContourPy (threaded, best threads × chunks) — variant threaded_reused {"name": "threaded", "line_type": "LineType.ChunkCombinedOffset", "thread_count": 8, "chunk_count": [4, 4], "reuse_generator": true}
  • VTK Flying Edges (best SMP backend × threads) — vtkImageData + filter pipeline built in prepare (zero-copy wrap, O(1)). vtkStripper joins segments into polylines (required for like-for-like output; MaximumLength unlimited so lines are fully joined) and is timed. variant smp {"backend": "STDThread", "threads": 4}

Semiconductor and metrology

4 benchmarks · use case →

Dataset Grid · levels isosweep1 thread isosweep16 threads GDAL 3.14-dev1 threadGDAL 3.13.31 threadVTK Flying Edges1 threadContourPy1 threadscikit-image find_contours1 threadContourPy32 threadsVTK Flying Edges8 threads Speed-upvs fastest 1-thread Speed-upvs fastest overall
CMP wafer thickness many-level 1,024 × 1,024 · 50 8.65 ms 2.61 ms 57.0 ms 56.3 ms 198 ms 212 ms 439 ms 50.2 ms 47.3 ms▲ 6.5× 18×
Contact array closed-curve topology 1,024 × 1,024 · 9 17.7 ms 4.39 ms 98.5 ms 98.2 ms 114 ms 46.6 ms 344 ms 10.2 ms 76.2 ms 2.6× 2.3×
OPC line/space process-variation band 2,048 × 2,048 · 9 12.4 ms 4.73 ms 159 ms 160 ms 152 ms 157 ms 253 ms 18.6 ms 77.1 ms 12× 3.9×
TCAD doping log-scale dynamic range 512 × 512 · 11 levels (interval 1.25) 0.51 ms 0.42 ms 5.50 ms 5.36 ms 5.54 ms 11.2 ms 16.0 ms 5.31 ms 2.96 ms 11× 7.0×

Median wall-clock time per full extraction, in-process, identical in-memory grid and iso-levels for every tool, each in its fastest documented configuration; lower is better. All line tools return assembled polylines. "Fastest overall" compares our best (1 or 16 threads) with the best result of any other library at any thread count; the shaded cell is that library. Measured November 2026 on Intel(R) Xeon(R) Platinum 8488C (48 cores / 96 threads) — AWS EC2 c7i.metal-24xl (dedicated bare-metal server, no hypervisor); Linux-7.0.0-1018-aws-x86_64-with-glibc2.39; turbo disabled; governor performance; THP never. ▲ marks a time that varied more than 5% from run to run; it is used as measured. Methodology.

Exact configuration of each library
  • GDAL 3.14-dev (master) — Both versions built from source with identical options. callback = pure computation, points copied into a result buffer (as any caller must); generate_ex = native API into an in-memory layer (native result type), the layer reset before each call outside the clock. Published value = faster of the two. variant generate_ex {"api": "GDALContourGenerateEx (in-memory layer)"}
  • GDAL 3.13.3 — Both versions built from source with identical options. callback = pure computation, points copied into a result buffer (as any caller must); generate_ex = native API into an in-memory layer (native result type), the layer reset before each call outside the clock. Published value = faster of the two. variant generate_ex {"api": "GDALContourGenerateEx (in-memory layer)"}
  • VTK Flying Edges (1 thread) — vtkImageData + filter pipeline built in prepare (zero-copy wrap, O(1)). vtkStripper joins segments into polylines (required for like-for-like output; MaximumLength unlimited so lines are fully joined) and is timed. variant sequential {"backend": "Sequential", "threads": 1}
  • ContourPy (serial) — variant serial_reused {"name": "serial", "line_type": "LineType.ChunkCombinedOffset", "reuse_generator": true}
  • scikit-image find_contours — variant per_level {}
  • ContourPy (threaded, best threads × chunks) — variant threaded_reused {"name": "threaded", "line_type": "LineType.ChunkCombinedOffset", "thread_count": 8, "chunk_count": [4, 4], "reuse_generator": true}
  • VTK Flying Edges (best SMP backend × threads) — vtkImageData + filter pipeline built in prepare (zero-copy wrap, O(1)). vtkStripper joins segments into polylines (required for like-for-like output; MaximumLength unlimited so lines are fully joined) and is timed. variant smp {"backend": "STDThread", "threads": 4}

Real-time displays

1 benchmark · use case →

Dataset Grid · levels isosweep1 thread isosweep16 threads GDAL 3.14-dev1 threadGDAL 3.13.31 threadVTK Flying Edges1 threadContourPy1 threadscikit-image find_contours1 threadContourPy64 threadsVTK Flying Edges8 threads Speed-upvs fastest 1-thread Speed-upvs fastest overall
Interactive 60fps level scrubbing 1,024 × 1,024 · 25 14.0 ms 3.18 ms 60.2 ms 59.8 ms 93.9 ms 112 ms 297 ms 25.7 ms 36.3 ms 4.3× 8.1×

Median wall-clock time per full extraction, in-process, identical in-memory grid and iso-levels for every tool, each in its fastest documented configuration; lower is better. All line tools return assembled polylines. "Fastest overall" compares our best (1 or 16 threads) with the best result of any other library at any thread count; the shaded cell is that library. Measured November 2026 on Intel(R) Xeon(R) Platinum 8488C (48 cores / 96 threads) — AWS EC2 c7i.metal-24xl (dedicated bare-metal server, no hypervisor); Linux-7.0.0-1018-aws-x86_64-with-glibc2.39; turbo disabled; governor performance; THP never. Methodology.

Exact configuration of each library
  • GDAL 3.14-dev (master) — Both versions built from source with identical options. callback = pure computation, points copied into a result buffer (as any caller must); generate_ex = native API into an in-memory layer (native result type), the layer reset before each call outside the clock. Published value = faster of the two. variant generate_ex {"api": "GDALContourGenerateEx (in-memory layer)"}
  • GDAL 3.13.3 — Both versions built from source with identical options. callback = pure computation, points copied into a result buffer (as any caller must); generate_ex = native API into an in-memory layer (native result type), the layer reset before each call outside the clock. Published value = faster of the two. variant generate_ex {"api": "GDALContourGenerateEx (in-memory layer)"}
  • VTK Flying Edges (1 thread) — vtkImageData + filter pipeline built in prepare (zero-copy wrap, O(1)). vtkStripper joins segments into polylines (required for like-for-like output; MaximumLength unlimited so lines are fully joined) and is timed. variant sequential {"backend": "Sequential", "threads": 1}
  • ContourPy (serial) — variant serial_reused {"name": "serial", "line_type": "LineType.ChunkCombinedOffset", "reuse_generator": true}
  • scikit-image find_contours — variant per_level {}
  • ContourPy (threaded, best threads × chunks) — variant threaded_reused {"name": "threaded", "line_type": "LineType.ChunkCombinedOffset", "thread_count": 8, "chunk_count": [4, 4], "reuse_generator": true}
  • VTK Flying Edges (best SMP backend × threads) — vtkImageData + filter pipeline built in prepare (zero-copy wrap, O(1)). vtkStripper joins segments into polylines (required for like-for-like output; MaximumLength unlimited so lines are fully joined) and is timed. variant smp {"backend": "STDThread", "threads": 4}
Scope and limitations
  • Warm, in-process timings. Each tool is measured after a warm-up, as a library call inside a running process (the server and application case). Process start-up and first-call costs are not included, for any tool.
  • Turbo disabled. The reference server runs at fixed clocks for repeatability, so absolute times are slower than on a typical turbo-enabled machine, for every tool alike. Ratios are the robust quantity.
  • One reference architecture. The published figures come from one x86-64 bare-metal server. ARM results are not yet published.
  • Contour lines only, so far. Filled-band timings are measured but not yet published.
  • Verification. Every run is checked by an automated conformance audit, and every figure on this site by a claims audit against the raw samples, including a 95% distribution-free (Hodges–Lehmann) confidence interval for every speed-up: a figure is shown as a speed-up only if the whole interval is above parity. There is no external human auditor yet.
Reproduce it

The complete harness is public on GitHub: parmond/isosweep-benchmarks. It holds the benchmark specifications, the runner and the auditor, build scripts for every library compared (pinned to exact versions and commits), a fetch script that rebuilds the real datasets and checks their checksums, and the audited results behind every table on this site. Anyone can repeat the measurements of the other libraries; isosweep's own timings need an evaluation build.