Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Mac OS X 10.15.7
Desktop
3 months ago
Test name Executions per second
DateTimeFormat single 26269.6 Ops/sec
toLocaleString single 26848.9 Ops/sec
DateTimeFormat 100 264.6 Ops/sec
toLocaleString 100 269.0 Ops/sec
DateTimeFormat 10000 2.7 Ops/sec
toLocaleString 10000 2.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • DateTimeFormat single

  • toLocaleString single

  • DateTimeFormat 100

  • toLocaleString 100

  • DateTimeFormat 10000

  • toLocaleString 10000