Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Chrome 103
Windows
Desktop
2 years ago
Test name Executions per second
Canvas 430246.5 Ops/sec
Offscreen 380468.9 Ops/sec
Canvas font 1420051.0 Ops/sec
Offscreen font 4564652.0 Ops/sec
Canvas textBaseline 3711124.8 Ops/sec
Offscreen textBaseline 3841153.8 Ops/sec
Canvas textAlign 3977238.8 Ops/sec
Offscreen textAlign 3958525.0 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign