Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127
Windows
Desktop
one year ago
JavaScript Date Time format using Template Strings.
3.6M/s
JavaScript Date Time format
3.6M/s
new Date()
1.5M/s
Date().toLocaleString()
30K/s
Intl.DateTimeFormat()
17K/s
View exact numbers
Test name Executions per second
JavaScript Date Time format using Template Strings. 3,624,996 Ops/sec
JavaScript Date Time format 3,620,606 Ops/sec
new Date() 1,491,060 Ops/sec
Date().toLocaleString() 30,060 Ops/sec
Intl.DateTimeFormat() 16,605 Ops/sec
Script Preparation code:
Tests: