Script Preparation code:
Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
toLocalString
27.7M/s
Intl.NumberFormat
3.3M/s

Fastest: toLocalString (8.4x faster)

View exact numbers
  • toLocalString: 27,738,776 ops/sec
  • Intl.NumberFormat: 3,305,922 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: 10 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0.1 Safari/605.1.15
Safari 26 on Mac OS X 10.15.7
View result in a separate tab
toLocalString
26.6M/s
Intl.NumberFormat
2.7M/s
View exact numbers
Test name Executions per second
toLocalString 26,597,708 Ops/sec
Intl.NumberFormat 2,741,172 Ops/sec