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 260119.5 Ops/sec
Save transform Clear restore 325162.8 Ops/sec
Canvas w with memo 3345.6 Ops/sec
w=w 321463.9 Ops/sec
w+=0 318850.8 Ops/sec
fillRect 262451.1 Ops/sec
createImageData 912.9 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