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 _;
var curried = function(x){
return function(y){
return x + y;
};
};
var precurried = curried(1);
var notcurried = _ = function(x, y){
return x + y;
}; _._ = 2;
function F2(fun) {
function wrapper(a) { return function(b) { return fun(a,b) } }
wrapper.arity = 2;
wrapper.func = fun;
return wrapper;
}
function A2(fun,a,b) {
return fun.arity === 2
? fun.func(a,b)
: fun(a)(b);
}
elmcurried = F2(function(x, y){
return x + y;
});
var _2 = function (f, a, b) {
if (f._ === 2 || f.length === 2) {
return f(a, b);
}
};
Ready to run.
Test | Ops/sec | |
---|---|---|
curried |
| ready |
not curried |
| ready |
pre curried |
| ready |
elm curried |
| ready |
TS curried |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.