parall threads (v10)

Revision 10 of this benchmark created on


Preparation HTML

<script src="https://rawgithub.com/calvinmetcalf/catiline/master/dist/catiline.min.js"></script>
<script>
var square = function (n) { 
    return n * n;
};
var w = cw(square);
var ww;
</script>

Setup

var a = Math.random()*100;

Test runner

Ready to run.

Testing in
TestOps/sec
Premade
// async test
w.data(a).then(function(){
    deferred.resolve();
}); 
ready
Make new
// async test
ww = cw(square);
ww.data(a).then(function(){return ww.close();}).then(function(){
    deferred.resolve();
}); 
ready

Revisions

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