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 src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<!--<script src="//raw.github.com/gist/661855/9ef0e862a574c5148e5945cb8306969f6d642fda/jquery.ba-tinypubsub.js">
</script>-->
<script>
(function(jQuery){
var o = jQuery({});
jQuery.each({
"subscribe" : "bind",
"unsubscribe" : "unbind",
"publish" : "trigger"
}, function ( fn, api ) {
jQuery[ fn ] = function() {
o[ api ].apply( o, arguments );
};
});
})(jQuery);
</script>
var callback = function() {}
var DISPATCHER = {};
$(function() {
$(window).bind('chris', callback);
$.subscribe('chris', callback);
});
Ready to run.
Test | Ops/sec | |
---|---|---|
window |
| ready |
object |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.