Array checks

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Array with 5 elements
new Array(5).fill(null).reduce((acc) => {
      const unit = Math.random();

      return acc.includes(unit) ? acc : [...acc, unit];
    }, [])
ready
Array with 50 elements
new Array(50).fill(null).reduce((acc) => {
      const unit = Math.random();

      return acc.includes(unit) ? acc : [...acc, unit];
    }, [])
ready

Revisions

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