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 186.9 Ops/sec
draw circles 330.0 Ops/sec
drawImage squares 58.1 Ops/sec
drawImage circles 61.6 Ops/sec
putImageData squares 562.5 Ops/sec
putImageData circles 590.1 Ops/sec
Script Preparation code:
Tests:
  • draw squares

  • draw circles

  • drawImage squares

  • drawImage circles

  • putImageData squares

  • putImageData circles