X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=benchmarks%2Finternal%2Fchoose-worker.js;h=560a395b69207ec6fede5d6abf39e3a2ad4ba2f3;hb=e843b9042b77e0e4e17c193820a3e05ffc92cffe;hp=e4e727a225c781e8aad777f0a3b7d97ddf8f49a3;hpb=292ad316a2815762f2e4a822383f1aef5ae49774;p=poolifier.git diff --git a/benchmarks/internal/choose-worker.js b/benchmarks/internal/choose-worker.js index e4e727a2..560a395b 100644 --- a/benchmarks/internal/choose-worker.js +++ b/benchmarks/internal/choose-worker.js @@ -9,7 +9,7 @@ function generateWorkersArray (numberOfWorkers) { const workers = generateWorkersArray(60) -let nextWorkerIndex = 0 +let nextWorkerIndex function chooseWorkerTernaryOffByOne () { nextWorkerIndex = @@ -48,7 +48,7 @@ suite nextWorkerIndex = 0 chooseWorkerTernaryWithNegation() }) - .add('Ternary with PreChoosing', function () { + .add('Ternary with pre-choosing', function () { nextWorkerIndex = 0 chooseWorkerTernaryWithPreChoosing() })