Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Array.push( spread ) vs assign Array.concat() v2.0
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
meta-externalagent/1.1 (+https://developers.facebook.com/docs/sharing/webmasters/crawler)
Browser:
Other
Operating system:
Other
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Array.concat()
4954282.5 Ops/sec
Array.push( spread )
24289648.0 Ops/sec
Tests:
Array.concat()
var params = [ "hello", true, 7 ]; var otherParams = [ 1, 2 ]; var other = otherParams.concat(params);
Array.push( spread )
var params = [ "hello", true, 7 ]; var otherParams = [ 1, 2 ]; var other = otherParams.push(...params);