🚀 Contrek vs OpenCV Benchmark Report

Readable combined report from 11 runs. The main table uses the 10 warm runs for averages; the first cold run is preserved in the raw table below.
Warm runs analyzed10+ 1 cold-start run
Speed wins5/7Contrek faster by average runtime
RAM wins6/7Contrek uses less memory
Total warm average4867 vs 6099 msContrek vs OpenCV

Aggregated warm-run results

ImageContrek contours
Ext/Hole
OpenCV contours
Ext/Hole
Contrek time
avg / range
OpenCV time
avg / range
Speed ratio
CT/CV
Contrek RAM
avg / range
OpenCV RAM
avg / range
RAM ratio
CT/CV
test_1024x10241.0 MP · setup 8/8 212 / 2259219 / 2259 36 ms24 ms–53 ms 24 ms17 ms–33 ms 1.54xOpenCV faster 71 MB70 MB–73 MB 89 MB87 MB–90 MB 0.80xContrek lower
test_4096x409616.8 MP · setup 8/8 621 / 128690625 / 128689 667 ms621 ms–705 ms 854 ms791 ms–937 ms 0.78xContrek faster 478 MB476 MB–482 MB 619 MB617 MB–620 MB 0.77xContrek lower
test_10000x10000100.0 MP · setup 8/8 806 / 371806 / 371 588 ms562 ms–633 ms 643 ms628 ms–677 ms 0.91xContrek faster 1000 MB998 MB–1002 MB 1458 MB1382 MB–1478 MB 0.69xContrek lower
test_10240x10240104.9 MP · setup 8/8 219 / 2259219 / 2259 267 ms252 ms–282 ms 486 ms464 ms–530 ms 0.55xContrek faster 1459 MB1382 MB–1479 MB 1519 MB1517 MB–1522 MB 0.96xContrek lower
test_10240x10240_2104.9 MP · setup 8/8 2447 / 57162447 / 5716 476 ms452 ms–512 ms 450 ms433 ms–468 ms 1.06xOpenCV faster 1520 MB1517 MB–1523 MB 1520 MB1517 MB–1523 MB 1.00xTie
test_15360x15360235.9 MP · setup 8/8 2447 / 57162447 / 5716 855 ms803 ms–990 ms 971 ms939 ms–1032 ms 0.88xContrek faster 1658 MB1576 MB–1680 MB 2785 MB2703 MB–2808 MB 0.60xContrek lower
test_20480x20480419.4 MP · setup 8/8 625 / 128689625 / 128689 1978 ms1874 ms–2090 ms 2670 ms2588 ms–2929 ms 0.74xContrek faster 3334 MB3330 MB–3345 MB 5420 MB5417 MB–5423 MB 0.62xContrek lower
How to read ratios: values below 1.00x favor Contrek. Example: 0.75x means Contrek used about 75% of OpenCV's time or RAM.

All runs, including cold start

RunImageMPContrek timeOpenCV timeSpeed ratioContrek RAMOpenCV RAMRAM ratio
1 coldtest_1024x10241.027ms20ms1.35x71MB88MB0.81x
1 coldtest_4096x409616.8598ms781ms0.77x476MB617MB0.77x
1 coldtest_10000x10000100.0554ms650ms0.85x1001MB1477MB0.68x
1 coldtest_10240x10240104.9282ms463ms0.61x1478MB1520MB0.97x
1 coldtest_10240x10240_2104.9470ms459ms1.02x1520MB1520MB1.00x
1 coldtest_15360x15360235.9850ms980ms0.87x1672MB2803MB0.60x
1 coldtest_20480x20480419.42040ms3131ms0.65x3334MB5423MB0.61x
2test_1024x10241.041ms33ms1.24x70MB89MB0.79x
2test_4096x409616.8649ms812ms0.80x482MB620MB0.78x
2test_10000x10000100.0586ms628ms0.93x1002MB1382MB0.73x
2test_10240x10240104.9272ms530ms0.51x1382MB1522MB0.91x
2test_10240x10240_2104.9458ms468ms0.98x1523MB1523MB1.00x
2test_15360x15360235.9803ms1031ms0.78x1576MB2708MB0.58x
2test_20480x20480419.42089ms2680ms0.78x3334MB5420MB0.62x
3test_1024x10241.024ms22ms1.09x73MB90MB0.81x
3test_4096x409616.8664ms857ms0.77x477MB620MB0.77x
3test_10000x10000100.0576ms633ms0.91x1002MB1477MB0.68x
3test_10240x10240104.9256ms464ms0.55x1478MB1519MB0.97x
3test_10240x10240_2104.9452ms467ms0.97x1519MB1519MB1.00x
3test_15360x15360235.9839ms1032ms0.81x1680MB2805MB0.60x
3test_20480x20480419.41880ms2612ms0.72x3333MB5420MB0.61x
4test_1024x10241.053ms26ms2.04x71MB88MB0.81x
4test_4096x409616.8649ms865ms0.75x477MB618MB0.77x
4test_10000x10000100.0583ms677ms0.86x1001MB1478MB0.68x
4test_10240x10240104.9252ms465ms0.54x1479MB1519MB0.97x
4test_10240x10240_2104.9472ms450ms1.05x1519MB1519MB1.00x
4test_15360x15360235.9832ms939ms0.89x1676MB2807MB0.60x
4test_20480x20480419.41997ms2626ms0.76x3332MB5420MB0.61x
5test_1024x10241.039ms29ms1.34x73MB90MB0.81x
5test_4096x409616.8699ms937ms0.75x479MB620MB0.77x
5test_10000x10000100.0599ms636ms0.94x1001MB1478MB0.68x
5test_10240x10240104.9267ms524ms0.51x1479MB1521MB0.97x
5test_10240x10240_2104.9477ms453ms1.05x1521MB1521MB1.00x
5test_15360x15360235.9822ms960ms0.86x1675MB2808MB0.60x
5test_20480x20480419.42024ms2650ms0.76x3335MB5422MB0.62x
6test_1024x10241.024ms17ms1.41x70MB87MB0.80x
6test_4096x409616.8679ms809ms0.84x476MB617MB0.77x
6test_10000x10000100.0580ms646ms0.90x998MB1477MB0.68x
6test_10240x10240104.9268ms490ms0.55x1478MB1518MB0.97x
6test_10240x10240_2104.9492ms450ms1.09x1518MB1518MB1.00x
6test_15360x15360235.9837ms970ms0.86x1675MB2803MB0.60x
6test_20480x20480419.42021ms2591ms0.78x3330MB5420MB0.61x
7test_1024x10241.039ms19ms2.05x71MB88MB0.81x
7test_4096x409616.8621ms853ms0.73x477MB618MB0.77x
7test_10000x10000100.0633ms660ms0.96x1000MB1477MB0.68x
7test_10240x10240104.9281ms471ms0.60x1478MB1520MB0.97x
7test_10240x10240_2104.9482ms460ms1.05x1520MB1520MB1.00x
7test_15360x15360235.9990ms962ms1.03x1680MB2805MB0.60x
7test_20480x20480419.42090ms2724ms0.77x3333MB5420MB0.61x
8test_1024x10241.044ms21ms2.10x70MB87MB0.80x
8test_4096x409616.8685ms819ms0.84x477MB617MB0.77x
8test_10000x10000100.0562ms628ms0.89x998MB1475MB0.68x
8test_10240x10240104.9282ms492ms0.57x1477MB1517MB0.97x
8test_10240x10240_2104.9477ms452ms1.06x1517MB1517MB1.00x
8test_15360x15360235.9895ms969ms0.92x1678MB2805MB0.60x
8test_20480x20480419.41978ms2929ms0.68x3332MB5417MB0.62x
9test_1024x10241.028ms19ms1.47x70MB87MB0.80x
9test_4096x409616.8705ms907ms0.78x477MB617MB0.77x
9test_10000x10000100.0605ms658ms0.92x1001MB1476MB0.68x
9test_10240x10240104.9260ms473ms0.55x1477MB1519MB0.97x
9test_10240x10240_2104.9481ms433ms1.11x1519MB1519MB1.00x
9test_15360x15360235.9878ms939ms0.94x1679MB2804MB0.60x
9test_20480x20480419.41874ms2671ms0.70x3332MB5420MB0.61x
10test_1024x10241.047ms33ms1.42x73MB90MB0.81x
10test_4096x409616.8645ms791ms0.82x481MB619MB0.78x
10test_10000x10000100.0579ms631ms0.92x1001MB1383MB0.72x
10test_10240x10240104.9266ms476ms0.56x1383MB1519MB0.91x
10test_10240x10240_2104.9458ms437ms1.05x1519MB1519MB1.00x
10test_15360x15360235.9820ms965ms0.85x1577MB2703MB0.58x
10test_20480x20480419.41944ms2632ms0.74x3334MB5420MB0.62x
11test_1024x10241.026ms18ms1.44x72MB90MB0.80x
11test_4096x409616.8674ms893ms0.75x478MB620MB0.77x
11test_10000x10000100.0575ms632ms0.91x1001MB1476MB0.68x
11test_10240x10240104.9263ms472ms0.56x1478MB1520MB0.97x
11test_10240x10240_2104.9512ms434ms1.18x1520MB1520MB1.00x
11test_15360x15360235.9834ms946ms0.88x1679MB2805MB0.60x
11test_20480x20480419.41878ms2588ms0.73x3345MB5423MB0.62x