Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36
Chrome 93
Windows
Desktop
3 years ago
Test name Executions per second
Clear only 238431.9 Ops/sec
Save transform Clear restore 182966.1 Ops/sec
Canvas w with memo 927.7 Ops/sec
w=w 157293.6 Ops/sec
w+=0 165538.5 Ops/sec
fillRect 157477.9 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