Test array creation

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Use Array.from
Array.from({ length: 100_000 }).map((_, i) => i)
ready
Use new Array.fill
new Array(100_000).fill(undefined).map((_, i) => i)
ready

Revisions

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