Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36
Chrome 99
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
Canvas 906558.6 Ops/sec
Offscreen 868094.9 Ops/sec
Canvas font 3182608.5 Ops/sec
Offscreen font 12094275.0 Ops/sec
Canvas textBaseline 8248110.5 Ops/sec
Offscreen textBaseline 7559888.5 Ops/sec
Canvas textAlign 9703948.0 Ops/sec
Offscreen textAlign 9411256.0 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign