Intl.NumberFormat vs toLocalString vs cached Intl.NumberFormatFastest: toLocalString (457.1x faster)
45,287,988 ops/sec
4,763,518 ops/sec
99,073 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 | |
| cached Intl.NumberFormat |
| 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 |