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
one year ago
Test name Executions per second
DateTimeFormat single 745970.0 Ops/sec
toLocaleString single 27341.8 Ops/sec
DateTimeFormat 100 7513.1 Ops/sec
toLocaleString 100 270.5 Ops/sec
DateTimeFormat 10000 74.6 Ops/sec
toLocaleString 10000 2.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • DateTimeFormat single

  • toLocaleString single

  • DateTimeFormat 100

  • toLocaleString 100

  • DateTimeFormat 10000

  • toLocaleString 10000