Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0
Firefox 93
Windows 7
Desktop
3 years ago
Test name Executions per second
Clear only 108216.9 Ops/sec
Save transform Clear restore 107119.1 Ops/sec
Canvas w with memo 2152.4 Ops/sec
w=w 2151.0 Ops/sec
w+=0 1898.1 Ops/sec
fillRect 69133.3 Ops/sec
createImageData 169.1 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