X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fbench.js;h=2ad7f22c5e47ec7827366ed3c95b21a3402c06cf;hb=e0d233a8e0c7e22275b29c36367a3b6cbc2e39d4;hp=b2091613e7909d4f920043032413014923e3e740;hpb=325f50bc1777ea44abc9736ce9d780ec0c8f90e2;p=poolifier.git diff --git a/benchmarks/bench.js b/benchmarks/bench.js index b2091613..2ad7f22c 100644 --- a/benchmarks/bench.js +++ b/benchmarks/bench.js @@ -11,13 +11,13 @@ const LIST_FORMATTER = new Intl.ListFormat('en-US', { type: 'conjunction' }) -// wait some seconds before start, my pools need to load threads !!! +// Wait some seconds before start, pools need to load threads !!! setTimeout(async () => { test() }, 3000) async function test () { - // add tests + // Add tests suite .add('Pioardi:Static:ThreadPool', async function () { await fixedThreadTest() @@ -31,7 +31,7 @@ async function test () { .add('Pioardi:Dynamic:ClusterPool', async function () { await dynamicClusterTest() }) - // add listeners + // Add listeners .on('cycle', function (event) { console.log(event.target.toString()) }) @@ -43,6 +43,5 @@ async function test () { // eslint-disable-next-line no-process-exit process.exit() }) - // run async - .run({ async: true }) + .run() }