Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Chrome 89
Windows
Desktop
3 years ago
Test name Executions per second
Canvas 375037.4 Ops/sec
Offscreen 376221.9 Ops/sec
Canvas font 1230345.2 Ops/sec
Offscreen font 3959908.8 Ops/sec
Canvas textBaseline 1879426.5 Ops/sec
Offscreen textBaseline 1879200.6 Ops/sec
Canvas textAlign 1912595.5 Ops/sec
Offscreen textAlign 1869954.5 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign