X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fversus-external-pools%2Ffunctions%2Ffunction-to-bench.js;h=565f811219cbccea2cdb1991b1c8a9a337fa9618;hb=69f2cb6e003d2128e68be673a21f3488e5d57645;hp=0c9738e62282d1486ea57141332761a0fd9705e9;hpb=9f7e7a99ea7dfa6f2fb3c2e0e025b85cfdd4e22e;p=poolifier.git diff --git a/benchmarks/versus-external-pools/functions/function-to-bench.js b/benchmarks/versus-external-pools/functions/function-to-bench.js index 0c9738e6..565f8112 100644 --- a/benchmarks/versus-external-pools/functions/function-to-bench.js +++ b/benchmarks/versus-external-pools/functions/function-to-bench.js @@ -1,7 +1,7 @@ module.exports = function (data) { - if ( data.taskType === 'CPU_INTENSIVE' ) { - // CPU Intensive task - for (let i = 0; i <= 5000; i++) { + if (data.taskType === 'CPU_INTENSIVE') { + // CPU intensive task + for (let i = 0; i < 5000; i++) { const o = { a: i }