Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Date constructor inputs (extended by input of pre-existing Date object)
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0
Browser:
Firefox 136
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Zero date
18.4M/s
Unix Timestamp
16.6M/s
Pre-existing Date object
14.7M/s
Today
5.2M/s
Datetime
4.4M/s
View exact numbers
Test name
Executions per second
✓
Zero date
18,410,976 Ops/sec
Unix Timestamp
16,556,741 Ops/sec
Pre-existing Date object
14,743,464 Ops/sec
Today
5,167,442 Ops/sec
Datetime
4,392,237 Ops/sec
Script Preparation code:
const preExistingDate = new Date('2024-11-16T13:17:21.8881');
Tests:
Today
new Date();
Zero date
new Date(0);
Unix Timestamp
new Date(1731792019);
Datetime
new Date('2024-11-16T13:17:21.888163-08:00');
Pre-existing Date object
new Date(preExistingDate)