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
More info: publish/subscribe on Wikipedia.
Compared:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<script src="https://raw.github.com/mroderick/PubSubJS/master/src/pubsub.js">
</script>
<script src="https://raw.github.com/phiggins42/bloody-jquery-plugins/master/pubsub.js">
</script>
<script src="https://raw.github.com/phiggins42/bloody-jquery-plugins/55e41df9bf08f42378bb08b93efcb28555b61aeb/pubsub.js">
</script>
<script src="https://raw.github.com/gist/1695338/736bcf94f9226d975fce3ad4f2bc08ccbf176bad/pubsub.js">
</script>
<script src="https://raw.github.com/appendto/amplify/master/core/amplify.core.js">
</script>
<script src="https://raw.github.com/maccman/spine/master/lib/spine.js">
</script>
var callback = function() { };
var payload = {
somekey: 'some value'
};
var body;
var handle;
var topics={};
$(window).bind('my-event', callback);
PubSub.subscribe('my-event', callback)
$.subscribe('my-event', callback);
handle = Events.subscribe('my-event', callback);
App.subscribe('my-event', callback);
amplify.subscribe('my-event', callback);
Spine.bind('my-event', callback);
topics["my-event"] = $.Callbacks();
topics["my-event"].add(callback);
Ready to run.
Test | Ops/sec | |
---|---|---|
jQuery Events |
| ready |
PubSubJS |
| ready |
jQuery PubSub plugin |
| ready |
Pure JS PubSub |
| ready |
Darcy Clarke |
| ready |
Amplify Pub/Sub |
| ready |
Spine Events |
| ready |
jQuery Callbacks |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.