array push multiple calls vs multiple args

Benchmark created on


Setup

var a = [];

Test runner

Ready to run.

Testing in
TestOps/sec
multiple calls to push
a.push(1);
a.push(2);
a.push(3);
a.push(4);
a.push(5);
a.push(6);
a.push(7);
a.push(8);
a.push(9);
a.push(10);
ready
multiple args to push
a.push(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
ready

Revisions

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