Searching for something (v4)

Revision 4 of this benchmark created on


Setup

const baseTabsArr = ['hub', 'sales', 'payouts', 'manage'];

const baseTabsSet = new Set(baseTabsArr);

Test runner

Ready to run.

Testing in
TestOps/sec
With Array
baseTabsArr.includes('reports')
ready
With Set
baseTabsSet.has('reports')
ready

Revisions

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