Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0
Firefox 109
Ubuntu
Desktop
one year ago
Test name Executions per second
Clear only 765.3 Ops/sec
Save transform Clear restore 866.8 Ops/sec
Canvas w with memo 221.7 Ops/sec
w=w 918.4 Ops/sec
w+=0 834.0 Ops/sec
fillRect 694.8 Ops/sec
createImageData 268.4 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