parall threads

Benchmark created by Calvin on


Description

parallel.js vs communist.js this is a 'fair test' as parallel dosn't support multi use workers.

Preparation HTML

<script src="https://rawgithub.com/adambom/parallel.js/master/lib/parallel.js"></script><script src="https://rawgithub.com/calvinmetcalf/communist/master/dist/communist.min.js"></script>

Setup

var square = function (n) { 
        return n * n;
    };
    var a = Math.random()*100;

Test runner

Ready to run.

Testing in
TestOps/sec
communist
// async test
communist(square,a).then(function(){deferred.resolve()});
ready
paralell
// async test
var p = new Parallel(a);
p.spawn(square).then(function(){deferred.resolve()});
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.