Contrek vs GDAL: Native Benchmark Report

Target ImageMPCONTREK ENGINEGDAL ENGINE (GDALPolygonize)RATIOS
Ext.HoleTimeTime Better?RAMRam Better?Ext.HoleTimeTime Better?RAMRam Better?Contrek SpeedupContrek RAM Saving
test_4096x4096.png16.86261286914808ms222MB62512868925979ms-1303MB-5.40× faster5.85× less RAM
test_10000x10000.png100.0806371682ms124MB8063711918ms-442MB-2.81× faster3.55× less RAM
test_10240x10240.png104.92192259422ms140MB21922591731ms-568MB-4.10× faster4.06× less RAM
test_10240x10240_2.png104.924475716798ms195MB244757162309ms-546MB-2.89× faster2.80× less RAM
test_15360x15360.png235.9244757161443ms322MB244757164408ms-1075MB-3.06× faster3.33× less RAM
test_20480x20480.png419.46251286893899ms471MB62512868932229ms-2862MB-8.26× faster6.07× less RAM
test_40960x40960.png1677.7248851475815780ms877MB2488514758220548ms-5888MB-13.98× faster6.71× less RAM
test_81920x81920.png6710.99928205903671304ms2453MB992820590361667888ms-14853MB-23.39× faster6.05× less RAM
high_complexity_81920x81920.png6710.91313370020010160375417ms3966MB13133700200101602733702ms-39590MB-7.28× faster9.98× less RAM

Some test images share the same internal topology, and therefore the same number of polygons, but have different dimensions. They were intentionally scaled to increase the number of contour points while keeping the topology unchanged.