Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.54 Safari/537.36
Chrome 94
Linux
Desktop
3 years ago
Test name Executions per second
Clear only 32008.1 Ops/sec
Save transform Clear restore 26005.2 Ops/sec
Canvas w with memo 1425.1 Ops/sec
w=w 21110.7 Ops/sec
w+=0 21201.2 Ops/sec
fillRect 27927.8 Ops/sec
createImageData 151.7 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