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 type="text/javascript">
var X = /\u0026[\w]+\u003b|\u0026\u0023(?:[1-9]+[\d]+|[1-9]+)\u003b+/g,
XCODE = /\u0026\u0023(?:[1-9]+[\d]+|[1-9]+)\u003b+/,
XCODEA = /\u0026\u0023[\d]+\u003b+/,
XCODEB = /\u0026\u0023(?:[1-9]+[\d]+|[1-9]+)\u003b+/,
XD = /[\d]+/,
XN = /(?:[1-9]+[\d]+|[1-9]+)/,
s;
function SA(s) {
var i, x, m;
x = X;
x.lastIndex = 0;
m = x.exec(s);
if (m !== null) {
if (/\u0026\u0023(?:[1-9]+[\d]+|[1-9]+)\u003b+/.test(s)) {
i = parseInt(/[\d]+/.exec(s).shift(), 10);
}
}
}
function SB(s) {
var i, v, x, m;
x = X;
x.lastIndex = 0;
m = x.exec(s);
if (m !== null) {
if (/\u0026\u0023[\d]+\u003b+/.test(s)) {
i = parseInt(/[\d]+/.exec(s).shift(), 10);
}
}
}
function SC(s) {
var i, v, x, m;
x = X;
x.lastIndex = 0;
m = x.exec(s);
if (m !== null) {
x = XCODEA;
if (x.test(s)) {
x = XN;
i = parseInt(x.exec(s).shift(), 10);
}
}
}
function SD(s) {
var i, v, x, m;
x = X;
x.lastIndex = 0;
m = x.exec(s);
if (m !== null) {
x = XCODEB;
if (x.test(s)) {
x = XN;
i = parseInt(x.exec(s).shift(), 10);
}
}
}
function SE(s) {
var i, v, x, m;
x = X;
x.lastIndex = 0;
m = x.exec(s);
if (m !== null) {
x = XCODEA;
if (x.test(s)) {
x = XD;
i = parseInt(x.exec(s).shift(), 10);
}
}
}
function SF(s) {
var i, v, x, m;
x = X;
x.lastIndex = 0;
m = x.exec(s);
if (m !== null) {
x = XCODEB;
if (x.test(s)) {
x = XD;
i = parseInt(x.exec(s).shift(), 10);
}
}
}
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
A |
| ready |
B |
| ready |
C |
| ready |
D |
| ready |
E |
| ready |
F |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.