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 count = 0; var e = e + 0; for (var i = 0; i < testString.length; i++) { if (testString[i] === e) { count += 1; } }
var matcher = /e/g;
var testString = "We the People of the United States, in Order to form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defence,promote the general Welfare, and secure the Blessings of Liberty to ourselves and our Posterity, do ordain and establish this Constitution for the United States of America.";
Ready to run.
Test | Ops/sec | |
---|---|---|
RegExp.match |
| ready |
string.split |
| ready |
iterate charAt: 0->length |
| ready |
iterate & slice |
| ready |
iterate ===: 0->length |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.