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
Updated these to latest gist for jQuery 1.7
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<script>
(function(jQuery) {
var o = jQuery({});
jQuery.each({
"subscribe1": "bind",
"unsubscribe1": "unbind",
"publish1": "trigger"
}, function(fn, api) {
jQuery[fn] = function() {
o[api].apply(o, arguments);
};
});
})(jQuery);
</script>
<script>
(function(jQuery) {
var o = jQuery({});
jQuery.each({
"subscribe2": "on",
"unsubscribe2": "off",
"publish2": "trigger"
}, function(fn, api) {
jQuery[fn] = function() {
o[api].apply(o, arguments);
};
});
})(jQuery);
</script>
<script>
(function($) {
var o = $({});
$.subscribe3 = function() {
o.bind.apply(o, arguments);
};
$.unsubscribe3 = function() {
o.unbind.apply(o, arguments);
};
$.publish3 = function() {
o.trigger.apply(o, arguments);
};
})(jQuery);
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
jQuery Events - bind/unbind |
| ready |
jQuery events - on/off |
| ready |
jQuery events - on/off (2) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.