Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Ubuntu
Desktop
one year ago
Test name Executions per second
Clear only 241043.8 Ops/sec
Save transform Clear restore 211751.9 Ops/sec
Canvas w with memo 12489.5 Ops/sec
w=w 130089.8 Ops/sec
w+=0 130175.2 Ops/sec
fillRect 228081.8 Ops/sec
createImageData 362.2 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