X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fworker-selection%2Fleast.mjs;h=2abbae8275c147187a486b368ffec84c3bdcd579;hb=3300b6f1879f8763b7271dcf56bc8815b5d62a0a;hp=b8766322d0240156ff2d339b378fb5f5e564db75;hpb=440042a64e5beb9e3e97f513198f4bd2d4a896a6;p=poolifier.git diff --git a/benchmarks/worker-selection/least.mjs b/benchmarks/worker-selection/least.mjs index b8766322..2abbae82 100644 --- a/benchmarks/worker-selection/least.mjs +++ b/benchmarks/worker-selection/least.mjs @@ -16,8 +16,8 @@ function generateRandomTasksMap ( const tasksMap = generateRandomTasksMap(60, 20) function loopSelect (tasksMap) { - let minValue = Infinity let minKey + let minValue = Infinity for (const [key, value] of tasksMap) { if (value === 0) { return key