array

Benchmark created on


Setup

const n = 1e6;

Test runner

Ready to run.

Testing in
TestOps/sec
from
const x = Array.from({length: n});
ready
fill
const x = Array(n).fill();
ready
only
const x = Array(n);
ready
...
const x = [...Array(n)];
ready

Revisions

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