arr

Benchmark created on


Description

arr

Setup

N = 100_000

Test runner

Ready to run.

Testing in
TestOps/sec
arr
var a = new Array(N);
for (var i = 0; i < N; i++) a[i] = i;
ready
push
var b = [];
for (var i = 0; i < N; i++) b.push(i);
ready
arr2
var c = new Array(N);
c[N - 2] = 0;
for (var i = 0; i < N; i++) c[i] = i;
ready

Revisions

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