Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
creating date
(version: 0)
create date
Comparing performance of:
create date every time vs cache dates
Created:
3 years ago
by:
Guest
Jump to the latest result
Tests:
create date every time
const dateString = "2022-07-30"; for(i=0; i<1000; i++){ const date = new Date(dateString); console.log(date); }
cache dates
const dateString = "2022-07-30"; const date = new Date(dateString); for(i=0; i<1000; i++){ console.log(date); }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
create date every time
cache dates
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!
Related benchmarks:
String split date vs parse date
String split date vs parse date 3
new Date from UNIX timestamp (ms) vs new Date from ISO string
Fatest way to build date object on frontend
Comparison of date creation methods
Comments
Confirm delete:
Do you really want to delete benchmark?