Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36 Edg/101.0.1210.32
Chrome 101
Windows
Desktop
2 years ago
Test name Executions per second
Canvas 1263520.4 Ops/sec
Offscreen 1250957.9 Ops/sec
Canvas font 4153882.0 Ops/sec
Offscreen font 12888901.0 Ops/sec
Canvas textBaseline 10484311.0 Ops/sec
Offscreen textBaseline 10494906.0 Ops/sec
Canvas textAlign 10946671.0 Ops/sec
Offscreen textAlign 10665322.0 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign