Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36 Edg/98.0.1108.62
Chrome 98
Windows
Desktop
2 years ago
Test name Executions per second
Canvas 498810.4 Ops/sec
Offscreen 580952.4 Ops/sec
Canvas font 1544333.4 Ops/sec
Offscreen font 5112566.5 Ops/sec
Canvas textBaseline 4649192.0 Ops/sec
Offscreen textBaseline 4500165.0 Ops/sec
Canvas textAlign 4465798.0 Ops/sec
Offscreen textAlign 4352755.5 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign


;