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
<script>
var str = 'https://crm.zoho.com/crm/ShowHomePage.do?module=CustomModule1';
</script>
var precompiledRegex1 = /(http|https):\/\/.+\.(facebook|youtube|yahoo|detik|liputan6|kaskus|tokopedia|bukalapak)/;
var precompiledRegex2 = /(http|https):\/\/.+\.(facebook|youtube|yahoo|detik|liputan6|kaskus|tokopedia|bukalapak).*/;
var precompiledRegex3 = /^(http|https):\/\/.+\.(facebook|youtube|yahoo|detik|liputan6|kaskus|tokopedia|bukalapak)/;
var precompiledRegex4 = /^(http|https):\/\/.+\.(facebook|youtube|yahoo|detik|liputan6|kaskus|tokopedia|bukalapak).*/;
var precompiledRegex5 = /^(.*)(facebook|youtube|yahoo|detik|liputan6|kaskus|tokopedia|bukalapak)/;
var precompiledRegex6 = /^(.*)(facebook|youtube|yahoo|detik|liputan6|kaskus|tokopedia|bukalapak).*/;
var precompiledRegex7 = /^(.*)(facebook|youtube|yahoo|detik||kaskus|bukalapak|kompas|wordpress|tokopedia|okezone|twitter|blogspot|blogger|lazada|instagram|suara|olx|kompasiana|tempo|sindonews|tribunnews|merdeka|bintang|elevenia|republika|viva|rimanews|cliponyu|metrotvnews|kapanlagi|uzone|pulsk|beritasatu).*/;
Ready to run.
Test | Ops/sec | |
---|---|---|
test |
| ready |
search |
| ready |
match |
| ready |
indexOf |
| ready |
precompiled test |
| ready |
precompiled search |
| ready |
precompiled match |
| ready |
precompiled indexOf |
| ready |
indexOf string primitive |
| ready |
Primitive comparison |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.