const a = new Array(100000);
for (let i=0; i<100000; i++) {
a[i] = i;
}
const b = new Set(a)
for (const x of a) {}
for (const x of b) {}
--enable-precise-memory-info
flag.
Test case name | Result |
---|---|
array | |
set |
This benchmark does not have any results yet. Be the first one to run it!