Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Chrome 113
Windows
Desktop
one year ago
Test name Executions per second
Clear only 350257.5 Ops/sec
Save transform Clear restore 252482.8 Ops/sec
Canvas w with memo 3246.5 Ops/sec
w=w 195054.6 Ops/sec
w+=0 211556.6 Ops/sec
fillRect 273165.0 Ops/sec
createImageData 437.6 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