Array .concat() vs. .push() (v23)

Revision 23 of this benchmark created on


Setup

var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];

Test runner

Ready to run.

Testing in
TestOps/sec
.push()
arr.push(11);
ready
.concat()
arr.concat([11]);
ready

Revisions

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