Run details:
Mozilla/5.0 (Linux; Android 12; SM-G996W) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.104 Mobile Safari/537.36
Chrome Mobile 96
Android
Mobile
2 years ago
Test name Executions per second
Clear only 100291.8 Ops/sec
Save transform Clear restore 78528.7 Ops/sec
Canvas w with memo 1658.2 Ops/sec
w=w 43719.5 Ops/sec
w+=0 49137.7 Ops/sec
fillRect 103042.6 Ops/sec
createImageData 231.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