Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
test slice czourhgirzjgprz
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Browser:
Chrome 135
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Me case
7873740.5 Ops/sec
Fab case
182199776.0 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
/*your preparation JavaScript code goes here To execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/ async function globalMeasureThatScriptPrepareFunction() { // This function is optional, feel free to remove it. // await someThing(); }
Tests:
Me case
const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9] const displayedFilters = [] const hiddenFilters = new Set() for (let i = 0; i < arr.length; i += 1) { if (i < 2) { displayedFilters.push(arr[i]); } else { hiddenFilters.add(arr[i]); } }
Fab case
const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9] const splitSelectedFilters = (arr) => ({ displayedFilters: arr.slice(0, 2), hiddenFilters: new Set(arr.slice(2)), });