Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126
Windows
Desktop
5 months ago
Test name Executions per second
Canvas 1143448.4 Ops/sec
Offscreen 217077.5 Ops/sec
Canvas font 2602355.2 Ops/sec
Offscreen font 7364313.0 Ops/sec
Canvas textBaseline 6812959.5 Ops/sec
Offscreen textBaseline 6317236.5 Ops/sec
Canvas textAlign 6835914.0 Ops/sec
Offscreen textAlign 6563175.0 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign