Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36
Chrome 92
Windows
Desktop
3 years ago
Test name Executions per second
Canvas 562613.5 Ops/sec
Offscreen 552198.7 Ops/sec
Canvas font 1733932.0 Ops/sec
Offscreen font 7208226.0 Ops/sec
Canvas textBaseline 5254373.0 Ops/sec
Offscreen textBaseline 5482535.0 Ops/sec
Canvas textAlign 5351380.0 Ops/sec
Offscreen textAlign 5067714.5 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign


;