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
Test name
Executions per second
Today
5167442.5 Ops/sec
Zero date
18410976.0 Ops/sec
Unix Timestamp
16556741.0 Ops/sec
Datetime
4392237.0 Ops/sec
Pre-existing Date object
14743464.0 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)