Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36
Chrome 101
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
Canvas 1923279.4 Ops/sec
Offscreen 1847819.0 Ops/sec
Canvas font 6758288.5 Ops/sec
Offscreen font 18057200.0 Ops/sec
Canvas textBaseline 14135675.0 Ops/sec
Offscreen textBaseline 13650730.0 Ops/sec
Canvas textAlign 13844891.0 Ops/sec
Offscreen textAlign 14155258.0 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign