Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0
Firefox 122
Mac OS X 10.15
Desktop
7 months ago
Test name Executions per second
Clear only 281178.0 Ops/sec
Save transform Clear restore 384600.7 Ops/sec
Canvas w with memo 3318.2 Ops/sec
w=w 275188.0 Ops/sec
w+=0 274311.4 Ops/sec
fillRect 384901.4 Ops/sec
createImageData 891.8 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