Performance comparisons of https://github.com/tdewolff/canvas

November 1, 2025 ยท View on GitHub

Boolean operation: union(europe, chile)

union(europe,chile)

Benchmarks are performed with the Natural Earth 10m resolutions of countries from the European Union and Chile, projected both to UTM 33N and 19S respectively. The boolean operation of union(Europe,Chile) with different levels of detail (different numbers of segments) is evaluated 10 times and averaged. The results are in seconds.

Segments25544793519353935769215763343186380987721
ajohnson10.00020.00060.00080.00210.00470.01030.03200.10220.21850.3362
ajohnson20.00060.00120.00260.00520.01120.02240.05120.11170.20410.2693
ioverlay0.00030.00040.00070.00110.00260.00500.01180.01570.02850.0368
tdewolff0.00060.00100.00170.00350.00710.01440.03370.09020.16810.2563

Boolean results graph

Benchmark notes:

  • ajohnson1 uses a transliteration of C++ in Go and might not accurately display the speed of the original implementation
  • ajohnson2 uses the original implementation as an external library where all the work is done, this includes a single (negligible) calling overhead
  • ioverlay also provides benchmarks with ajohnson2 and Boost