Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36
Chrome 102
Linux
Desktop
2 years ago
Test name Executions per second
Canvas 822760.0 Ops/sec
Offscreen 768624.4 Ops/sec
Canvas font 2919020.2 Ops/sec
Offscreen font 10426641.0 Ops/sec
Canvas textBaseline 7979626.0 Ops/sec
Offscreen textBaseline 7971389.0 Ops/sec
Canvas textAlign 8279119.0 Ops/sec
Offscreen textAlign 8335818.5 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign