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 type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"></script>
<script type="text/javascript" src="https://rawgit.com/ifandelse/ConduitJS/master/lib/conduit.js"></script>
<script type="text/javascript" src="https://rawgit.com/postaljs/postal.js/master/lib/postal.js"></script>
var channelOne = postal.channel("one");
var channelTwo = postal.channel("two");
var subs = [];
for(var i = 0; i < 10; i++) {
subs.push(channelTwo.subscribe("some.topic", function() {}));
}
var channelThree = postal.channel("three");
for(i = 0; i < 10; i++) {
subs.push(channelThree.subscribe("some.*", function() {}));
}
var channelFour = postal.channel("four");
for(i = 0; i < 10; i++) {
subs.push(channelFour.subscribe("#", function() {}));
}
while(subs.length) {
subs.pop().unsubscribe();
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Publishing (bare) |
| ready |
Publishing (no wildcard) |
| ready |
Publishing (* wildcard) |
| ready |
Publishing (# wildcard) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.