Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
new Date from timestamp vs new Date from date-string
(version: 1)
Comparing performance of:
new timestamp vs new date-string
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
/*your preparation JavaScript code goes here To execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/ async function globalMeasureThatScriptPrepareFunction() { // This function is optional, feel free to remove it. // await someThing(); }
Tests:
new timestamp
new Date(1745899511871)
new date-string
new Date("2025-04-29T04:05:11.870Z")
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
new timestamp
new date-string
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Browser/OS:
Chrome 135 on Linux
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
new timestamp
20767956.0 Ops/sec
new date-string
3635966.8 Ops/sec
Related benchmarks:
reate array by lenght
Assigning new variable
Luxon vs
undefined to boolean
Regex starts with A or B vs startsWith
js mul vs pow
test early return
Query Element
comparing array creation
Comments
Confirm delete:
Do you really want to delete benchmark?