Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Chrome 109
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Clear only 529927.6 Ops/sec
Save transform Clear restore 379032.0 Ops/sec
Canvas w with memo 2388.3 Ops/sec
w=w 334563.0 Ops/sec
w+=0 342231.0 Ops/sec
fillRect 408178.4 Ops/sec
createImageData 524.9 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