Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Chrome 117
Mac OS X 10.15.7
Desktop
2 years ago
Crop and Resize using createImageBitmap, currently bugged in FF 111.0
101K/s
Crop and Resize using Canvas scaling, usually somewhat slow
97K/s
No cropping or scaling on main thread, assume ImageBitmap will be transferred to worker (note: not actually transferred in this benchmark)
93K/s
View exact numbers
Test name Executions per second
Crop and Resize using createImageBitmap, currently bugged in FF 111.0 100,956 Ops/sec
Crop and Resize using Canvas scaling, usually somewhat slow 97,356 Ops/sec
No cropping or scaling on main thread, assume ImageBitmap will be transferred to worker (note: not actually transferred in this benchmark) 92,994 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: