test split plus includes (v2)

Revision 2 of this benchmark created on


Setup

const experiment_to_be_skipped = `
test1,
test2,
test3
`;

const experimentList = `
test2
test3
`.split(',\n');

let experimentToBeSkippedList = experiment_to_be_skipped.split("\n");
 
 let experimentToBeSkippedDict = new Set(experimentToBeSkippedList);

Test runner

Ready to run.

Testing in
TestOps/sec
with list
experimentList.filter(
      (exp) => !experimentToBeSkippedList.includes(exp)
    );
ready
with dictionary
experimentList.filter(
      (exp) => !experimentToBeSkippedDict.has(exp)
    );
ready

Revisions

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