Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36
Chrome 99
Windows 7
Desktop
2 years ago
Test name Executions per second
Clear only 103877.5 Ops/sec
Save transform Clear restore 82473.1 Ops/sec
Canvas w with memo 2694.6 Ops/sec
w=w 71562.8 Ops/sec
w+=0 73328.6 Ops/sec
fillRect 87743.8 Ops/sec
createImageData 318.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