X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fworker-selection%2Fleast.mjs;h=4be3826f7e8165bb698e9c9dd21617b8b0f26160;hb=eadb37e247acfa716cad2a1e211c947513c251bf;hp=40b360ea694158929e4bb7d9d6c0020b4eb1c30c;hpb=0804b9b4106132c5487b57be518958c699ce2563;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