Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0
Firefox 100
Linux
Desktop
2 years ago
Test name Executions per second
Clear only 3017.2 Ops/sec
Save transform Clear restore 3162.2 Ops/sec
Canvas w with memo 369.5 Ops/sec
w=w 369.1 Ops/sec
w+=0 364.7 Ops/sec
fillRect 3279.5 Ops/sec
createImageData 484.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