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
function uncurryThis(f){return f.call.bind(f)};
var fn = uncurryThis(String.prototype.toUpperCase);
var uncurryThis2 = Function.bind.bind(Function.call);
var fn2 = uncurryThis2(String.prototype.toUpperCase);
Function.prototype.uncurryThis3=function(){var f=this;return function(){var a=arguments,b=[].slice(a,1);return f.apply(a[0],b)}}
var fn3 = String.prototype.toUpperCase.uncurryThis3();
Function.prototype.uncurryThis4=function(){var f=this;return function() {return f.call.apply(f,arguments)}};
var fn4 = String.prototype.toUpperCase.uncurryThis4();
Ready to run.
Test | Ops/sec | |
---|---|---|
f.call.bind |
| ready |
Function.bind.bind |
| ready |
Function.prototype ... [].slice(a,1) |
| ready |
Function.prototype ... f.call.apply |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.