Intl.NumberFormat vs toLocalStringFastest: toLocalString (437.3x faster)
29,123,082 ops/sec
66,600 ops/sec
Fastest: toLocalString (28027.9x faster)
1,527,657,728 ops/sec
54,505 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 | 48,964,744 Ops/sec |
| Intl.NumberFormat | 114,556 Ops/sec |