Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
new Date().toISOString() vs new Date().toLocaleString()
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0
Browser:
Firefox 122
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
new Date().toISOString()
3.3M/s
new Date().toLocaleString()
605K/s
View exact numbers
Test name
Executions per second
✓
new Date().toISOString()
3,277,514 Ops/sec
new Date().toLocaleString()
605,024 Ops/sec
Script Preparation code:
var timestamp = null;
Tests:
new Date().toISOString()
timestamp = new Date().toISOString();
new Date().toLocaleString()
timestamp = new Date().toLocaleString();