Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.27 Safari/537.36
Chrome 88
Linux
Desktop
4 years ago
Test name Executions per second
draw squares 264.8 Ops/sec
draw circles 0.3 Ops/sec
drawImage squares 0.2 Ops/sec
drawImage circles 0.2 Ops/sec
putImageData squares 88.9 Ops/sec
putImageData circles 94.0 Ops/sec
Script Preparation code:
Tests:
  • draw squares

  • draw circles

  • drawImage squares

  • drawImage circles

  • putImageData squares

  • putImageData circles