Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Date constructor performance
Comparing the performance of different inputs to the Date constructor.
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Browser:
Chrome 133
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
new Date(full string)
5501832.0 Ops/sec
new Date(short string)
7502250.5 Ops/sec
new Date(number)
10610037.0 Ops/sec
new Date()
9117674.0 Ops/sec
new Date(numbers)
4751458.0 Ops/sec
Script Preparation code:
let date;
Tests:
new Date(full string)
date = new Date('2023-09-18T16:29:10.093Z');
new Date(short string)
date = new Date('2023-09-18');
new Date(number)
date = new Date(1695054550093);
new Date()
date = new Date();
new Date(numbers)
date = new Date(2024, 1, 1);