Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0
Firefox 94
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
Clear only 2294.4 Ops/sec
Save transform Clear restore 2323.5 Ops/sec
Canvas w with memo 304.1 Ops/sec
w=w 309.1 Ops/sec
w+=0 306.1 Ops/sec
fillRect 2272.1 Ops/sec
createImageData 222.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Clear only

  • Save transform Clear restore

  • Canvas w with memo

  • w=w

  • w+=0

  • fillRect

  • createImageData