Tests:

Historical Performance Data aggregated from 29 community runs

Desktop Results:
Chrome 22 runs
toLocaleString
28.4M/s
cached Intl.NumberFormat
2.7M/s
new Intl.NumberFormat
50K/s

Fastest: toLocaleString (562.6x faster)

View exact numbers
  • toLocaleString: 28,355,172 ops/sec
  • cached Intl.NumberFormat: 2,689,250 ops/sec
  • new Intl.NumberFormat: 50,402 ops/sec
Firefox 7 runs
toLocaleString
955.1M/s
cached Intl.NumberFormat
1.3M/s
new Intl.NumberFormat
33K/s

Fastest: toLocaleString (28523.6x faster)

View exact numbers
  • toLocaleString: 955,082,112 ops/sec
  • cached Intl.NumberFormat: 1,331,866 ops/sec
  • new Intl.NumberFormat: 33,484 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
    cached Intl.NumberFormat
    new Intl.NumberFormat
    toLocaleString

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
Chrome 147 on Mac OS X 10.15.7
View result in a separate tab
toLocaleString
5.5M/s
cached Intl.NumberFormat
2.4M/s
new Intl.NumberFormat
13K/s
View exact numbers
Test name Executions per second
toLocaleString 5,495,398 Ops/sec
cached Intl.NumberFormat 2,363,307 Ops/sec
new Intl.NumberFormat 13,140 Ops/sec