Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36
Chrome 89
Windows
Desktop
3 years ago
Test name Executions per second
Canvas 795197.2 Ops/sec
Offscreen 761922.8 Ops/sec
Canvas font 2351064.0 Ops/sec
Offscreen font 8153954.0 Ops/sec
Canvas textBaseline 3754227.0 Ops/sec
Offscreen textBaseline 3776891.5 Ops/sec
Canvas textAlign 3954248.0 Ops/sec
Offscreen textAlign 3994143.2 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign


;