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 i = 0, j= 0, k= 0, l=0, m=0
function bound() {
return this
}
function useClojure(i) {
return function() {
return i
}
}
function ownBind(func,toBind){
return function(){
func.apply(toBind);
}
}
function notBound(what){
return what
}
function passing(func, toPass){
return function(){
func.call(null,toPass);
}
}
function passingW_OCall(func, toPass){
return function(){
func(toPass);
}
}
//alert('i='+i+' j='+j+' shared='+shared)
Ready to run.
Test | Ops/sec | |
---|---|---|
bind |
| ready |
clojure |
| ready |
own bind |
| ready |
passing |
| ready |
passing without call |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.