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
var CloModule, cloInstance;
// Define parent class
CloModule = function(arg1, arg2, arg3){
var self = {
getArg1:function(){
return arg1;
},
getArg2: function(){
return arg2;
},
getArg3: function(){
return arg3;
}
};
return self;
};
var ProtModule, protInstance;
// Define parent class
ProtModule = function(arg1, arg2, arg3){
this.arg1 = arg1;
this.arg2 = arg2;
this.arg3 = arg3;
};
ProtModule.prototype.getArg1 = function(){
return this.arg1;
};
ProtModule.prototype.getArg2 = function(){
return this.arg2;
};
ProtModule.prototype.getArg3 = function(){
return this.arg3;
};
delete cloInstance;
delete protInstance;
Ready to run.
Test | Ops/sec | |
---|---|---|
Closure |
| ready |
Prototype |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.