Append to array

Benchmark created on


Setup

var a = Array(100).join("1,2").split(",");

Test runner

Ready to run.

Testing in
TestOps/sec
.push()
a.push(123);
ready
.length
a[a.length] = 123;
ready

Revisions

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