Intl.NumberFormat vs Number.toLocaleStringFastest: Intl.NumberFormat (101.9x faster)
73 ops/sec
1 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Intl.NumberFormat | |
| Number.toLocaleString |
| Test name | Executions per second |
|---|---|
| ✓ Intl.NumberFormat | 22 Ops/sec |
| Number.toLocaleString | 0 Ops/sec |