Intl.NumberFormat vs toLocalString vs Intl.NumberFormat With cached formatterFastest: toLocalString (381.7x faster)
12,293,094 ops/sec
1,500,707 ops/sec
32,204 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 | |
| toLocalString | |
| Intl.NumberFormat With cached formatter |
| 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 |