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
new Date(number)
10.6M/s
new Date()
9.1M/s
new Date(short string)
7.5M/s
new Date(full string)
5.5M/s
new Date(numbers)
4.8M/s
View exact numbers
Test name
Executions per second
✓
new Date(number)
10,610,037 Ops/sec
new Date()
9,117,674 Ops/sec
new Date(short string)
7,502,250 Ops/sec
new Date(full string)
5,501,832 Ops/sec
new Date(numbers)
4,751,458 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);