Javascript array push method

Benchmark created on


Setup

var arr = []

Test runner

Ready to run.

Testing in
TestOps/sec
push 1000 elements
for (i = 1000; i > 0; i--) {
  arr.push(i)
}
ready
push 10000 elements
for (i = 10000; i > 0; i--) {
  arr.push(i)
}
ready

Revisions

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