Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Chrome 111
Windows
Desktop
one year ago
Test name Executions per second
Canvas 1258605.9 Ops/sec
Offscreen 1208729.1 Ops/sec
Canvas font 3748263.0 Ops/sec
Offscreen font 13671214.0 Ops/sec
Canvas textBaseline 11186337.0 Ops/sec
Offscreen textBaseline 11099550.0 Ops/sec
Canvas textAlign 11373736.0 Ops/sec
Offscreen textAlign 11610678.0 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign