perf

Benchmark created on


Setup

const arr = Array.from({length: 10_000_000}, (_, i) => i);
const set = new Set(arr)

Test runner

Ready to run.

Testing in
TestOps/sec
spread
[...set]
ready
Array.from
Array.from(set)
ready

Revisions

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