Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
concat vs lodash.concat vs push.apply
(version: 0)
Comparing performance of:
Array.prototype.concat vs Lodash concat vs push.apply
Created:
4 years 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>
Tests:
Array.prototype.concat
var params = [ "hello", "hello", "sname" ]; var other = [ "red", "wine" ].concat(params);
Lodash concat
var params = [ "hello", "hello", "sname" ]; var other = _.concat([ "red", "wine" ], params);
push.apply
var params = [ "hello", "hello", "sname" ]; var other = Array.prototype.push.apply([ "red", "wine" ], params);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
Array.prototype.concat
Lodash concat
push.apply
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:
Array.prototype.concat vs spread operator vs lodash concat
Array.prototype.concat vs spread operator vs lodash.concat - variable and constant
Array concat vs spread operator vs push (many)
array find vs some vs lodash
Comments
Confirm delete:
Do you really want to delete benchmark?