Fixlet to tasks distribution tests
[poolifier.git] / benchmarks / worker-selection / lru.js
index 90628d3ad9d877d1002fa2df384c9f42cb890bb5..80d78893061e5d943eb467736759cc4adbc76ce5 100644 (file)
@@ -50,7 +50,7 @@ const defaultPivotIndexSelect = (leftIndex, rightIndex) => {
 }
 
 const randomPivotIndexSelect = (leftIndex, rightIndex) => {
-  return generateRandomInteger(leftIndex, rightIndex)
+  return generateRandomInteger(rightIndex, leftIndex)
 }
 
 function swap (array, index1, index2) {
@@ -168,7 +168,7 @@ function quickSelectRecursionRandomPivot (tasksMap) {
 }
 
 Benchmark.suite(
-  'Tasks selection',
+  'Less used worker tasks distribution',
   Benchmark.add('Loop select', () => {
     loopSelect(tasksMap)
   }),