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 1186778.2 Ops/sec
Offscreen 1078669.5 Ops/sec
Canvas font 2812385.5 Ops/sec
Offscreen font 9066510.0 Ops/sec
Canvas textBaseline 8043099.0 Ops/sec
Offscreen textBaseline 8324443.5 Ops/sec
Canvas textAlign 7799757.0 Ops/sec
Offscreen textAlign 8084311.0 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign