Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15
Safari 17
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Canvas 2218904.8 Ops/sec
Offscreen 2345505.8 Ops/sec
Canvas font 20308548.0 Ops/sec
Offscreen font 24483830.0 Ops/sec
Canvas textBaseline 18665862.0 Ops/sec
Offscreen textBaseline 18718866.0 Ops/sec
Canvas textAlign 23546512.0 Ops/sec
Offscreen textAlign 22766488.0 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign