Test case details

Preparation Code

var x = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];     var y = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0];     for (var i = 0; i < 8; i += 1) {        x = x.concat(x);     }     var arrPush = Array.prototype.push;

Test cases

Test #1

var a = x.slice(0),     b = y.slice(0); a = a.concat(b);

Test #2

var a = x.slice(0),     b = y.slice(0); Array.prototype.push.apply(a, b);

Test #3

var a = x.slice(0),     b = y.slice(0),     i = 0,     c = b.length; for (; i < c; ++i) {   a.push(b[i]); }

Test #4

var a = x.slice(0),     b = y.slice(0); arrPush.apply(a, b);