Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0
Firefox 84
Linux
Desktop
4 years ago
Test name Executions per second
draw squares 171.2 Ops/sec
draw circles 337.0 Ops/sec
drawImage squares 58.5 Ops/sec
drawImage circles 59.7 Ops/sec
putImageData squares 611.9 Ops/sec
putImageData circles 611.5 Ops/sec
Script Preparation code:
Tests:
  • draw squares

  • draw circles

  • drawImage squares

  • drawImage circles

  • putImageData squares

  • putImageData circles