Tests:

Historical Performance Data aggregated from 146 community runs

Desktop Results:
Chrome 137 runs
toLocalString
29.1M/s
Intl.NumberFormat
67K/s

Fastest: toLocalString (437.3x faster)

View exact numbers
  • toLocalString: 29,123,082 ops/sec
  • Intl.NumberFormat: 66,600 ops/sec
Firefox 9 runs
toLocalString
1527.7M/s
Intl.NumberFormat
55K/s

Fastest: toLocalString (28027.9x faster)

View exact numbers
  • toLocalString: 1,527,657,728 ops/sec
  • Intl.NumberFormat: 54,505 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Intl.NumberFormat
    toLocalString

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Chrome 146 on Mac OS X 10.15.7
View result in a separate tab
toLocalString
49.0M/s
Intl.NumberFormat
115K/s
View exact numbers
Test name Executions per second
toLocalString 48,964,744 Ops/sec
Intl.NumberFormat 114,556 Ops/sec