Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Date.now() vs new Date() vs performance.now()
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0
Browser:
Chrome 143
Operating system:
Windows
Device Platform:
Desktop
Date tested:
6 months ago
Date.now()
9.1M/s
new Date();
7.4M/s
performance.now()
4.4M/s
View exact numbers
Test name
Executions per second
✓
Date.now()
9,095,271 Ops/sec
new Date();
7,366,776 Ops/sec
performance.now()
4,423,706 Ops/sec
Script Preparation code:
var timestamp = null;
Tests:
Date.now()
timestamp = Date.now();
new Date();
timestamp = new Date();
performance.now()
timestamp = performance.now()