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 Matrix {
constructor(a = 1, b = 0, c = 0, d = 1, tx = 0, ty = 0)
{
this.a = a;
this.b = b;
this.c = c;
this.d = d;
this.tx = tx;
this.ty = ty;
}
concat(m)
{
return new Matrix(
this.a * m.a + this.b * m.c,
this.a * m.b + this.b * m.d,
this.c * m.a + this.d * m.c,
this.c * m.b + this.d * m.d,
this.tx * m.a + this.ty * m.c + m.tx,
this.tx * m.b + this.ty * m.d + m.ty
);
}
};
Ready to run.
Test | Ops/sec | |
---|---|---|
Matrix |
| ready |
DOMMatrix |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.