Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0
Firefox 109
Windows 7
Desktop
2 years ago
Test name Executions per second
Canvas 548687.0 Ops/sec
Offscreen 556393.6 Ops/sec
Canvas font 79576.9 Ops/sec
Offscreen font 278467.8 Ops/sec
Canvas textBaseline 20599362.0 Ops/sec
Offscreen textBaseline 20054422.0 Ops/sec
Canvas textAlign 18376078.0 Ops/sec
Offscreen textAlign 18202640.0 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign