Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36
Chrome 93
Windows
Desktop
3 years ago
Test name Executions per second
Canvas 1020095.5 Ops/sec
Offscreen 978617.1 Ops/sec
Canvas font 3085778.2 Ops/sec
Offscreen font 10406486.0 Ops/sec
Canvas textBaseline 7159789.5 Ops/sec
Offscreen textBaseline 7167821.0 Ops/sec
Canvas textAlign 8054428.0 Ops/sec
Offscreen textAlign 7826970.5 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign