Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.19 Safari/537.36 Edg/90.0.818.6
Chrome 90
Windows
Desktop
3 years ago
Test name Executions per second
draw squares 937.2 Ops/sec
draw circles 588.4 Ops/sec
drawImage squares 307.8 Ops/sec
drawImage circles 308.3 Ops/sec
putImageData squares 16.5 Ops/sec
putImageData circles 69.6 Ops/sec
Script Preparation code:
Tests:
  • draw squares

  • draw circles

  • drawImage squares

  • drawImage circles

  • putImageData squares

  • putImageData circles


;