Run details:
Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
Chrome 80
Windows
Desktop
2 years ago
Test name Executions per second
Clear only 182332.8 Ops/sec
Save transform Clear restore 165719.2 Ops/sec
Canvas w with memo 60727.2 Ops/sec
w=w 118039.6 Ops/sec
w+=0 109031.9 Ops/sec
fillRect 154631.2 Ops/sec
createImageData 435.6 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