Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124
Linux
Desktop
7 months ago
Test name Executions per second
Clear only 692230.7 Ops/sec
Save transform Clear restore 534626.9 Ops/sec
Canvas w with memo 4183.6 Ops/sec
w=w 490133.2 Ops/sec
w+=0 500467.9 Ops/sec
fillRect 535315.9 Ops/sec
createImageData 860.7 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