Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Spread Operator vs Lodash on Objects
(version: 0)
Answering https://stackoverflow.com/questions/58702513/lodash-clone-array-vs-spread-operator#
Comparing performance of:
Spread Operator vs Lodash Clone
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
var obj = {a:new Array(100000000).fill(0), b: "asfwqef", c: 123431251245}
Tests:
Spread Operator
{...obj};
Lodash Clone
_.clone(obj);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Spread Operator
Lodash Clone
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?