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>
function Separate() {
this.a = 0;
this.b = 0;
this.c = 0;
this.d = 0;
this.e = 0;
}
Separate.prototype.do = function(v) {
this.a = v;
this.b = v;
this.c = v;
this.d = v;
this.e = v;
};
var separate = new Separate();
function Combined() {
this.a = this.b = this.c = this.d = this.e = 0;
}
Combined.prototype.do = function(v) {
this.a = this.b = this.c = this.d = this.e = v;
};
var combined = new Combined();
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
separate |
| ready |
combined |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.