Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/111.0
Firefox 111
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
Crop and Resize using createImageBitmap, currently bugged in FF 111.0 200.8 Ops/sec
Crop and Resize using Canvas scaling, usually somewhat slow 955.5 Ops/sec
No cropping or scaling on main thread, assume ImageBitmap will be transferred to worker (note: not actually transferred in this benchmark) 240425.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Crop and Resize using createImageBitmap, currently bugged in FF 111.0

  • Crop and Resize using Canvas scaling, usually somewhat slow

  • No cropping or scaling on main thread, assume ImageBitmap will be transferred to worker (note: not actually transferred in this benchmark)