Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128
Ubuntu
Desktop
5 months ago
Test name Executions per second
Clear only 75549.7 Ops/sec
Save transform Clear restore 66553.5 Ops/sec
Canvas w with memo 2577.9 Ops/sec
w=w 5285.0 Ops/sec
w+=0 3392.8 Ops/sec
fillRect 5868.8 Ops/sec
createImageData 185.5 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