Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Chrome 107
Linux
Desktop
2 years ago
Test name Executions per second
Clear only 112598.2 Ops/sec
Save transform Clear restore 88939.3 Ops/sec
Canvas w with memo 5080.7 Ops/sec
w=w 72363.5 Ops/sec
w+=0 70036.0 Ops/sec
fillRect 125648.2 Ops/sec
createImageData 192.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