Run details:
Mozilla/5.0 (Linux; Android 12; 2201123C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.79 Mobile Safari/537.36
Chrome Mobile 100
Android
Mobile
2 years ago
Test name Executions per second
Canvas 484960.6 Ops/sec
Offscreen 279431.5 Ops/sec
Canvas font 1642348.8 Ops/sec
Offscreen font 5506009.0 Ops/sec
Canvas textBaseline 3847616.5 Ops/sec
Offscreen textBaseline 3820822.5 Ops/sec
Canvas textAlign 4248139.5 Ops/sec
Offscreen textAlign 4328565.0 Ops/sec
Script Preparation code:
Tests:
  • Canvas

  • Offscreen

  • Canvas font

  • Offscreen font

  • Canvas textBaseline

  • Offscreen textBaseline

  • Canvas textAlign

  • Offscreen textAlign