without toLocaleDateString vs with toLocaleDateStringFastest: without toLocaleDateString (6.7x faster)
2,694,784 ops/sec
403,739 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| without toLocaleDateString | |
| with toLocaleDateString |
| Test name | Executions per second |
|---|---|
| ✓ without toLocaleDateString | 47,400,252 Ops/sec |
| with toLocaleDateString | 403,739 Ops/sec |