Filtering

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Without Set
['a', 'b', 'c', 'd', 'e', 'f', 'g'].filter(t => !['b', 'e'].includes(t));
ready
With Set
const excludedSet = new Set(['b', 'e']);
['a', 'b', 'c', 'd', 'e', 'f', 'g'].filter(t => !excludedSet.has(t));
ready

Revisions

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