X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fworker-selection%2Fleast.mjs;h=4be3826f7e8165bb698e9c9dd21617b8b0f26160;hb=fcfc3353eb4053c02f64c80a14ae142d44388a71;hp=40b360ea694158929e4bb7d9d6c0020b4eb1c30c;hpb=e1ba9765afbf97436250d19f28c818221ebc10b9;p=poolifier.git diff --git a/benchmarks/worker-selection/least.mjs b/benchmarks/worker-selection/least.mjs index 40b360ea..4be3826f 100644 --- a/benchmarks/worker-selection/least.mjs +++ b/benchmarks/worker-selection/least.mjs @@ -1,6 +1,6 @@ import { randomInt } from 'node:crypto' -import { bench, group, run } from 'mitata' +import { bench, group, run } from 'tatami-ng' function generateRandomTasksMap ( numberOfWorkers, @@ -18,7 +18,7 @@ const tasksMap = generateRandomTasksMap(60, 20) function loopSelect (tasksMap) { let minKey - let minValue = Infinity + let minValue = Number.POSITIVE_INFINITY for (const [key, value] of tasksMap) { if (value === 0) { return key