Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Windows
Desktop
2 years ago
Benchmark.js
without toLocaleDateString
990K/s
with toLocaleDateString
118K/s
View exact numbers
Test name Executions per second
without toLocaleDateString 990,401 Ops/sec
with toLocaleDateString 117,992 Ops/sec
Script Preparation code:
Tests: