For Vs fill

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Fill
let arrayTest = new Array(31).fill(new Set());
ready
For
let arrayTest = [];

for (let i = 0; i < 31; i++){
  arrayTest.push(new Set());
}
ready

Revisions

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