Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4300.0 Safari/537.36
Chrome 88
Linux
Desktop
4 years ago
Test name Executions per second
draw squares 883.3 Ops/sec
draw circles 1.0 Ops/sec
drawImage squares 291.0 Ops/sec
drawImage circles 288.4 Ops/sec
putImageData squares 1.1 Ops/sec
putImageData circles 1.1 Ops/sec
Script Preparation code:
Tests:
  • draw squares

  • draw circles

  • drawImage squares

  • drawImage circles

  • putImageData squares

  • putImageData circles