Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Chrome 115
Windows
Desktop
one year ago
Test name Executions per second
Canvas 1161415.9 Ops/sec
Offscreen 1158559.4 Ops/sec
Canvas font 2711575.2 Ops/sec
Offscreen font 9042466.0 Ops/sec
Canvas textBaseline 7958481.0 Ops/sec
Offscreen textBaseline 8218828.5 Ops/sec
Canvas textAlign 8169761.0 Ops/sec
Offscreen textAlign 8429265.0 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign