jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
compares two methods of splitting a string into parameters
var i,kv, q, parts, obj,s = 'q=convert+mpg+video+ipod&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official&&fields=23&mst=63&pp=100&sb=3&src=1&src=2&qq=nikoniko+rental+car&rlz=1C5CHFA_enJP967JP967&oq=niko&gs_lcrp=EgZjaHJvbWUqCQgAEEUYOxiABDIJCAAQRRg7GIAEMgcIARAuGIAEMgYIAhBFGEAyBggDEEUYOTIHCAQQLhiABDIQCAUQLhivARjHARiABBiOBTIKCAYQLhjUAhiABDIQCAcQLhivARjHARiABBiOBdIBCDE4NTZqMGo3qAIAsAIA&sourceid=chrome&ie=UTF-8&zx=1742615754109&no_sw_cr=1&bool=&b2'
console.log(q)
console.log(obj)
Ready to run.
Test | Ops/sec | |
---|---|---|
.map and .reduce |
| ready |
Parse query string with loop and .split |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.