Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36
Chrome 91
Windows
Desktop
3 years ago
Test name Executions per second
Canvas 690566.1 Ops/sec
Offscreen 676257.7 Ops/sec
Canvas font 2049926.2 Ops/sec
Offscreen font 7605304.5 Ops/sec
Canvas textBaseline 5792971.0 Ops/sec
Offscreen textBaseline 5632533.0 Ops/sec
Canvas textAlign 6052956.5 Ops/sec
Offscreen textAlign 6010962.0 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign