Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Chrome 112
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Canvas 850938.6 Ops/sec
Offscreen 855032.8 Ops/sec
Canvas font 2708098.5 Ops/sec
Offscreen font 9884913.0 Ops/sec
Canvas textBaseline 8210173.0 Ops/sec
Offscreen textBaseline 8293647.5 Ops/sec
Canvas textAlign 8501787.0 Ops/sec
Offscreen textAlign 8536571.0 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign