Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
aaa params str to obj
(version: 0)
Comparing performance of:
manual param obj vs URLSearchParams
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var pstr = "foo=bar¶m1=123456¶m2=hello%20world"
Tests:
manual param obj
var pobj = pstr .split('&') .map((param) => param.split('=')) .reduce((acc, [key, value]) => { acc[key] = value return acc }, {})
URLSearchParams
var pobj = new URLSearchParams(pstr)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
manual param obj
URLSearchParams
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
spread vs push 1232132131
Slice vs spread fxn
Object.assign vs spread operator 222
asdasds
Comments
Confirm delete:
Do you really want to delete benchmark?