Script Preparation code:
Tests:

Historical Performance Data aggregated from 6 community runs

Desktop Results:
Chrome 6 runs
toLocalString
45.3M/s
cached Intl.NumberFormat
4.8M/s
Intl.NumberFormat
99K/s

Fastest: toLocalString (457.1x faster)

View exact numbers
  • toLocalString: 45,287,988 ops/sec
  • cached Intl.NumberFormat: 4,763,518 ops/sec
  • Intl.NumberFormat: 99,073 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
    cached Intl.NumberFormat

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Chrome 149 on Mac OS X 10.15.7
View result in a separate tab
toLocalString
50.4M/s
cached Intl.NumberFormat
5.9M/s
Intl.NumberFormat
119K/s
View exact numbers
Test name Executions per second
toLocalString 50,376,396 Ops/sec
cached Intl.NumberFormat 5,858,336 Ops/sec
Intl.NumberFormat 119,339 Ops/sec