Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
toLocalString
12.3M/s
Intl.NumberFormat With cached formatter
1.5M/s
Intl.NumberFormat
32K/s

Fastest: toLocalString (381.7x faster)

View exact numbers
  • toLocalString: 12,293,094 ops/sec
  • Intl.NumberFormat With cached formatter: 1,500,707 ops/sec
  • Intl.NumberFormat: 32,204 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
    Intl.NumberFormat With cached formatter

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 YaBrowser/25.2.0.0 Safari/537.36
Yandex Browser 25 on Mac OS X 10.15.7
View result in a separate tab
toLocalString
34.6M/s
Intl.NumberFormat With cached formatter
4.2M/s
Intl.NumberFormat
85K/s
View exact numbers
Test name Executions per second
toLocalString 34,586,104 Ops/sec
Intl.NumberFormat With cached formatter 4,185,154 Ops/sec
Intl.NumberFormat 85,245 Ops/sec