Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Chrome 110
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Clear only 305838.3 Ops/sec
Save transform Clear restore 228423.4 Ops/sec
Canvas w with memo 809.0 Ops/sec
w=w 184207.8 Ops/sec
w+=0 190292.8 Ops/sec
fillRect 185103.5 Ops/sec
createImageData 200.2 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


;