concat vs push.apply (v25)

Revision 25 of this benchmark created on


Setup

var src = new Array(1000).join('foo,').split(',');

Test runner

Ready to run.

Testing in
TestOps/sec
concat
var a = src.slice(0),
    b = src.slice(0);
a = a.concat(b);
ready
push.apply
var a = src.slice(0),
    b = src.slice(0);
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.