Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0
Firefox 83
Ubuntu
Desktop
4 years ago
Test name Executions per second
draw squares 487.9 Ops/sec
draw circles 1032.9 Ops/sec
drawImage squares 238.4 Ops/sec
drawImage circles 230.7 Ops/sec
putImageData squares 1876.7 Ops/sec
putImageData circles 1803.7 Ops/sec
Script Preparation code:
Tests:
  • draw squares

  • draw circles

  • drawImage squares

  • drawImage circles

  • putImageData squares

  • putImageData circles