Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:107.0) Gecko/20100101 Firefox/107.0
Firefox 107
Ubuntu
Desktop
2 years ago
Test name Executions per second
Clear only 603.7 Ops/sec
Save transform Clear restore 625.3 Ops/sec
Canvas w with memo 142.1 Ops/sec
w=w 142.2 Ops/sec
w+=0 139.6 Ops/sec
fillRect 630.3 Ops/sec
createImageData 245.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