Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Windows
Desktop
2 months ago
Test name Executions per second
Canvas 1334286.0 Ops/sec
Offscreen 470441.8 Ops/sec
Canvas font 2933893.5 Ops/sec
Offscreen font 12103269.0 Ops/sec
Canvas textBaseline 10678636.0 Ops/sec
Offscreen textBaseline 10395728.0 Ops/sec
Canvas textAlign 11419141.0 Ops/sec
Offscreen textAlign 11357265.0 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign


;