Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36
Chrome 94
Linux
Desktop
3 years ago
Test name Executions per second
Clear only 161870.9 Ops/sec
Save transform Clear restore 125541.3 Ops/sec
Canvas w with memo 1634.3 Ops/sec
w=w 84316.3 Ops/sec
w+=0 90051.1 Ops/sec
fillRect 147648.7 Ops/sec
createImageData 153.7 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