Searching for something (v3)

Revision 3 of this benchmark created on


Setup

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

const baseTabsSet = new Set(['hub', 'sales', 'payouts', 'manage']);

Test runner

Ready to run.

Testing in
TestOps/sec
With Array


const isBaseTab = baseTabsArr.includes('reports')
ready
With Set


const isBaseTab = baseTabsSet.has('reports')
ready

Revisions

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