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 545.9 Ops/sec
draw circles 1058.4 Ops/sec
drawImage squares 232.2 Ops/sec
drawImage circles 235.4 Ops/sec
putImageData squares 2020.7 Ops/sec
putImageData circles 1928.2 Ops/sec
Script Preparation code:
Tests:
  • draw squares

  • draw circles

  • drawImage squares

  • drawImage circles

  • putImageData squares

  • putImageData circles