Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:103.0) Gecko/20100101 Firefox/103.0
Firefox 103
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
Clear only 6188.3 Ops/sec
Save transform Clear restore 6212.2 Ops/sec
Canvas w with memo 1669.3 Ops/sec
w=w 1678.8 Ops/sec
w+=0 1678.7 Ops/sec
fillRect 6212.2 Ops/sec
createImageData 1085.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