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 Message {
constructor($type) {
}
}
class RenderResult1 extends Message{
constructor() {
super("RenderResult1");
}
}
class RenderResult2 extends Message{
constructor() {
super("RenderResult2");
}
}
class RenderResult3 extends Message{
constructor() {
super("RenderResult3");
}
}
class RenderResult4 extends Message{
constructor() {
super("RenderResult4");
}
}
class RenderResult5 extends Message{
constructor() {
super("RenderResult5");
}
}
class RenderResult6 extends Message{
constructor() {
super("RenderResult6");
}
}
class RenderResult7 extends Message{
constructor() {
super("RenderResult7");
}
}
class RenderResult8 extends Message{
constructor() {
super("RenderResult8");
}
}
class RenderResult9 extends Message{
constructor() {
super("RenderResult9");
}
}
class RenderResult10 extends Message{
constructor() {
super("RenderResult10");
}
}
function isMessage(message, protoType) {
const name = protoType.constructor.name;
return name == message.$type;
}
Ready to run.
Test | Ops/sec | |
---|---|---|
instanceof |
| ready |
property |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.