Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Chrome 115
Windows
Desktop
one year ago
Test name Executions per second
Canvas 1153776.4 Ops/sec
Offscreen 1121245.6 Ops/sec
Canvas font 2844490.2 Ops/sec
Offscreen font 9575703.0 Ops/sec
Canvas textBaseline 8130825.0 Ops/sec
Offscreen textBaseline 8314927.5 Ops/sec
Canvas textAlign 8403617.0 Ops/sec
Offscreen textAlign 8532656.0 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign