fix: use same task timeout default as poolifier when possible
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 4 Jul 2023 15:41:17 +0000 (17:41 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 4 Jul 2023 15:41:17 +0000 (17:41 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
benchmarks/versus-external-pools/dynamic-node-worker-threads-pool.mjs

index debe85132cf190fb262f2bac3d4f4032772540bb..204049749d2e171a1cb067ec550179cf65a124fa 100644 (file)
@@ -20,7 +20,8 @@ async function run () {
     promises.push(
       pool.exec({
         task: functionToBench,
-        param: data
+        param: data,
+        timeout: 60000 // this is the same as poolifier default
       })
     )
   }