Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122
Windows
Desktop
2 years ago
Crop and Resize using createImageBitmap, currently bugged in FF 111.0
122K/s
No cropping or scaling on main thread, assume ImageBitmap will be transferred to worker (note: not actually transferred in this benchmark)
119K/s
Crop and Resize using Canvas scaling, usually somewhat slow
116K/s
View exact numbers
Test name Executions per second
Crop and Resize using createImageBitmap, currently bugged in FF 111.0 121,550 Ops/sec
No cropping or scaling on main thread, assume ImageBitmap will be transferred to worker (note: not actually transferred in this benchmark) 118,980 Ops/sec
Crop and Resize using Canvas scaling, usually somewhat slow 115,543 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: