Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Windows 7
Desktop
6 months ago
Test name Executions per second
Clear only 47028.4 Ops/sec
Save transform Clear restore 45574.7 Ops/sec
Canvas w with memo 925.2 Ops/sec
w=w 5046.5 Ops/sec
w+=0 5214.6 Ops/sec
fillRect 39470.4 Ops/sec
createImageData 85.8 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