Avoid to on-by-one in worker function. (#285)
[poolifier.git] / benchmarks / versus-external-pools / functions / function-to-bench.js
index 48a0fc78c8851f6c31c3e87d7d7d35eb3b6e0dc2..565f811219cbccea2cdb1991b1c8a9a337fa9618 100644 (file)
@@ -1,7 +1,7 @@
 module.exports = function (data) {
   if (data.taskType === 'CPU_INTENSIVE') {
     // CPU intensive task
-    for (let i = 0; i <= 5000; i++) {
+    for (let i = 0; i < 5000; i++) {
       const o = {
         a: i
       }