Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36
Chrome 100
Windows
Desktop
2 years ago
Test name Executions per second
Canvas 1160845.1 Ops/sec
Offscreen 1089453.9 Ops/sec
Canvas font 3907549.5 Ops/sec
Offscreen font 14230802.0 Ops/sec
Canvas textBaseline 11697494.0 Ops/sec
Offscreen textBaseline 11560422.0 Ops/sec
Canvas textAlign 12463431.0 Ops/sec
Offscreen textAlign 11898674.0 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign