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
var fn = function() {
var nav = navigator, lang = ((
nav.language ||
nav.browserLanguage ||
nav.systemLanguage ||
nav.userLanguage
) || '').split("-");
if (lang.length == 2){
return { country: lang[1].toLowerCase(), lang: lang[0].toLowerCase() };
} else if (lang) {
return {lang: lang[0].toLowerCase(), country: null };
} else { return{lang: null, country: null }; }
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Retrieve language 1 |
| ready |
Retrieve language 2 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.