Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Chrome 108
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Clear only 214700.9 Ops/sec
Save transform Clear restore 178467.6 Ops/sec
Canvas w with memo 1493.7 Ops/sec
w=w 148926.4 Ops/sec
w+=0 157858.4 Ops/sec
fillRect 167454.6 Ops/sec
createImageData 205.1 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