Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Array.from() vs new Array() without filling
(version: 0)
Comparing performance of:
new Array() vs Array.from()
Created:
one year ago
by:
Guest
Jump to the latest result
Tests:
new Array()
new Array(1296)
Array.from()
Array.from({ length: 1296 })
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
new Array()
Array.from()
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
3 months ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.2 Safari/605.1.15
Browser/OS:
Safari 26 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
new Array()
2391082.5 Ops/sec
Array.from()
441389.6 Ops/sec
Comments
Confirm delete:
Do you really want to delete benchmark?