Iter

Benchmark created on


Setup

const foo = new Set();
for (let i = 0; i < 10000000; i++) {
    foo.add(i);
}   

Test runner

Ready to run.

Testing in
TestOps/sec
foo.values().map(a => a+a).toArray();
foo.values().map(a => a+a).toArray();
ready
[...foo.values().map(a => a+a)]
[...foo.values().map(a => a+a)]
ready
[...foo.values()].map(a => a+a)
[...foo.values()].map(a => a+a)
ready

Revisions

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