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 a = [];
for (var i = 0; i < 10000; i += 1) {
a.push({});
}
function validate(actual, expected) {
if (actual.length !== expected.length) {
throw new Error("actual length (" + actual.length + ") differs from expected length (" + expected.length + ")");
}
for (var i = 0; i < actual.length; i += 1) {
if (actual[i] !== expected[i]) {
throw new Error("actual value at " + i + " differs from expected value");
}
}
}Ready to run.
| Test | Ops/sec | |
|---|---|---|
| concat | | ready |
| while | | ready |
| slice no arg | | ready |
| concat new | | ready |
| for loop | | ready |
| slice 1 arg | | ready |
| slice two arg | | ready |
| concat | | ready |
| map | | ready |
| filter | | ready |
| split() | | ready |
| split() 2 | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.