concat vs push.apply (v24)

Revision 24 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
concat
var a = new Array(1000),
    b = new Array(1000);
a = a.concat(b);
ready
push.apply
var a = new Array(1000),
    b = new Array(1000);
a.push.apply(a, b);
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.