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
const regexList = [
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
/(.*)\/foo\/(.*)/,
];
const regexGroup = /(.*)\/(foo1)?(foo2)?(foo3)?(foo4)?(foo5)?(foo6)?(foo7)?(foo8)?(foo9)?(foo10)?(foo11)?(foo12)?(foo13)?(foo14)?(foo15)?(foo16)?(foo17)?(foo18)?(foo19)?(foo20)?(foo21)?(foo22)?(foo23)?(foo24)?(foo25)?(foo26)?\/(.*)/;
Ready to run.
Test | Ops/sec | |
---|---|---|
Iterate regex list |
| ready |
Grouped regex |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.