Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.125 Safari/537.36
Chrome 102
Windows 7
Desktop
2 years ago
Test name Executions per second
Clear only 63966.4 Ops/sec
Save transform Clear restore 50627.4 Ops/sec
Canvas w with memo 1245.8 Ops/sec
w=w 34654.5 Ops/sec
w+=0 39043.3 Ops/sec
fillRect 69429.0 Ops/sec
createImageData 146.3 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


;