Intl.NumberFormat vs Number.toLocaleStringFastest: Number.toLocaleString (1.2x faster)
10,025,536 ops/sec
8,064,648 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 | 4,450,092 Ops/sec |
| Number.toLocaleString | 150,675 Ops/sec |