Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Windows
Desktop
2 months ago
Test name Executions per second
draw squares 1494.5 Ops/sec
draw circles 6.1 Ops/sec
drawImage squares 240.2 Ops/sec
drawImage circles 243.0 Ops/sec
putImageData squares 913.4 Ops/sec
putImageData circles 915.2 Ops/sec
Script Preparation code:
Tests:
  • draw squares

  • draw circles

  • drawImage squares

  • drawImage circles

  • putImageData squares

  • putImageData circles