Array from vs spread

Benchmark created on


Description

Array from vs spread

Setup

const num = 5000

Test runner

Ready to run.

Testing in
TestOps/sec
Array.from(Array(len))
Array.from(Array(num))
ready
[...Array(len)]
[...Array(num)]
ready

Revisions

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