Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Date.now() vs new Date().getTime()11
(version: 0)
Comparing performance of:
Date.now() vs new Date().getTime(); vs intl
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var timestamp = null; const formatter = new Intl.DateTimeFormat('tr-TR', { day: 'numeric', month: 'numeric', year: 'numeric', hour: 'numeric', minute: 'numeric', second: 'numeric' });
Tests:
Date.now()
timestamp = Date.now
new Date().getTime();
timestamp = new Date().toString()
intl
timestamp = formatter.format()
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
Date.now()
new Date().getTime();
intl
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Comments
Confirm delete:
Do you really want to delete benchmark?