Tests:

Historical Performance Data aggregated from 167 community runs

Desktop Results:
Chrome 146 runs
Number.toLocaleString
57K/s
Intl.NumberFormat
55K/s
View exact numbers
  • Number.toLocaleString: 56,683 ops/sec
  • Intl.NumberFormat: 55,349 ops/sec
Firefox 21 runs
Number.toLocaleString
41K/s
Intl.NumberFormat
41K/s
View exact numbers
  • Number.toLocaleString: 41,296 ops/sec
  • Intl.NumberFormat: 41,074 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
    Number.toLocaleString

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Chrome 142 on Windows
View result in a separate tab
Number.toLocaleString
38K/s
Intl.NumberFormat
36K/s
View exact numbers
Test name Executions per second
Number.toLocaleString 38,260 Ops/sec
Intl.NumberFormat 35,868 Ops/sec