Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Windows
Desktop
one year ago
Test name Executions per second
Canvas 1008130.4 Ops/sec
Offscreen 967621.2 Ops/sec
Canvas font 2322311.5 Ops/sec
Offscreen font 8669776.0 Ops/sec
Canvas textBaseline 7417472.0 Ops/sec
Offscreen textBaseline 7708906.5 Ops/sec
Canvas textAlign 7425000.0 Ops/sec
Offscreen textAlign 7548346.5 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign