Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0
Firefox 110
Linux
Desktop
one year ago
Test name Executions per second
Clear only 1526.8 Ops/sec
Save transform Clear restore 1711.8 Ops/sec
Canvas w with memo 370.4 Ops/sec
w=w 1221.2 Ops/sec
w+=0 796.3 Ops/sec
fillRect 948.3 Ops/sec
createImageData 351.0 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