Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
Chrome 96
Linux
Desktop
2 years ago
Test name Executions per second
Clear only 46258.9 Ops/sec
Save transform Clear restore 34053.9 Ops/sec
Canvas w with memo 100.3 Ops/sec
w=w 31222.6 Ops/sec
w+=0 32005.0 Ops/sec
fillRect 42160.1 Ops/sec
createImageData 160.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


;