Intl.NumberFormat vs toLocalStringFastest: toLocalString (8.4x faster)
27,738,776 ops/sec
3,305,922 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 |
| Test name | Executions per second |
|---|---|
| ✓ toLocalString | 26,597,708 Ops/sec |
| Intl.NumberFormat | 2,741,172 Ops/sec |