Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Search Params Parsing comparison
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Browser:
Chrome 135
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Creating URL
203401.6 Ops/sec
Just variable access
417231.9 Ops/sec
Script Preparation code:
const url = 'https://example.com/some/deep/path?foo=bar&another=param&hello=world'; const urlObj = new URL(url); const PARAM = urlObj.searchParams.get('another'); function getParam() { const urlObj = new URL(url); const param = urlObj.searchParams.get('another'); return param; }
Tests:
Creating URL
console.log(getParam());
Just variable access
console.log(PARAM);