Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36
Chrome 101
Linux
Desktop
2 years ago
Test name Executions per second
Clear only 87547.0 Ops/sec
Save transform Clear restore 63204.9 Ops/sec
Canvas w with memo 1740.3 Ops/sec
w=w 57723.7 Ops/sec
w+=0 58749.2 Ops/sec
fillRect 87161.0 Ops/sec
createImageData 135.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


;