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
parallel.js vs communist.js with communist just both like parallel and like I intended it to be used.
<script src="https://rawgithub.com/adambom/parallel.js/master/lib/parallel.js"></script><script src="https://rawgithub.com/calvinmetcalf/catiline/master/dist/catiline.min.js"></script>
<script>
var square = function (n) {
return n * n;
};
var w = communist({data:square},4);
var dc = communist({data:square},4,true);
</script>
var a = [];
while(a.length<50){
a.push( Math.random()*100);
}
Ready to run.
Test | Ops/sec | |
---|---|---|
paralell |
| ready |
communist parallel style |
| ready |
communist idiomatic |
| ready |
communist dumb queue parallel style |
| ready |
communist idomatic dumb queue |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.