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 680403.0 Ops/sec
Save transform Clear restore 521140.5 Ops/sec
Canvas w with memo 12289.1 Ops/sec
w=w 329844.2 Ops/sec
w+=0 390527.9 Ops/sec
fillRect 473716.0 Ops/sec
createImageData 407.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