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>
var a = [1,2,3];
var b = [4,6,7];
function V(u) {
this.x = u[1];
this.y = u[1];
this.z = u[2];
}
V.prototype = {
dot: function (w) {
return this.x*w.x+this.y*w.y+this.z*w.z;
},
cross: function (w) {
return new V([
this.y*w.z-this.z*w.y,
this.z*w.x-this.x*w.z,
this.x*w.y-this.y*w.x
]);
}
};
var A = new V(a);
var B = new V(b);
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Object |
| ready |
No Object |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.