Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15
Safari 17
Mac OS X 10.15.7
Desktop
10 months ago
Test name Executions per second
Clear only 649223.9 Ops/sec
Save transform Clear restore 679771.1 Ops/sec
Canvas w with memo 1546.1 Ops/sec
w=w 537848.3 Ops/sec
w+=0 543083.4 Ops/sec
fillRect 826117.2 Ops/sec
createImageData 461.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