Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
User Agent search
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Browser:
Chrome 136
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Named groups match
1659759.1 Ops/sec
Match + if
17546012.0 Ops/sec
Includes
7149837.5 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:
Named groups match
/*When writing async/deferred tests, use `deferred.resolve()` to mark test as done*/ Object.entries('Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1'.match(/(?<Android>Android)|(?<Windows>Win)|(?<OSX>Mac)|(?<Linux>Linux)|(?<iOS>like Mac)/).groups).find(([key, value]) => value)[0]
Match + if
const match = 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1'.match(/Android|Win|Mac|Linux|like Mac/)[0]; let operatingSystem; if (match === 'Win') { operatingSystem = 'Windows'; } else if (match === 'Mac') { operatingSystem = 'OSX'; } else if (match === 'Linux') { operatingSystem = 'Linux'; } else if (match === 'Adnroid') { operatingSystem = 'Android'; } else if (match === 'like Mac') { operatingSystem = 'iOS'; }
Includes
const userAgent = 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1'; if (userAgent.includes('Win')) { operatingSystem = 'Windows'; } else if (userAgent.includes('Mac')) { operatingSystem = 'OSX'; } else if (userAgent.includes('Linux')) { operatingSystem = 'Linux'; } else if (userAgent.includes('Android')) { operatingSystem = 'Android'; } else if (userAgent.includes('like Mac')) { operatingSystem = 'iOS'; }