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
class CustomError extends Error {
constructor(message) {
super(message);
this.name = "CustomError";
}
}
class CustomError2 {
constructor(message, err) {
this.name = "CustomError";
this.message = message;
this.err = err;
}
get stack() {
return this.err.stack;
}
}
Reflect.setPrototypeOf(CustomError2.prototype, Error.prototype);
class CustomError3 extends Error {
constructor(message) {
super(message);
this.name = "CustomError";
this.stack2 = this.stack;
}
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Default |
| ready |
new Error().stack |
| ready |
Eager access |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.