Push multiple items into array

Benchmark created by Ivan on


Test runner

Ready to run.

Testing in
TestOps/sec
Push one item
var a = [];
var l = 1000;
while(--l) { a.push(l); a.push(l); a.push(l); a.push(l); } 
ready
Push multiple items
var a = [];
var l = 1000;
while(--l) a.push(l,l,l,l);
ready

Revisions

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