perf: enable tasks queue for poolifier in benchmark
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 23 Jul 2023 19:10:50 +0000 (21:10 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 23 Jul 2023 19:10:50 +0000 (21:10 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
benchmarks/versus-external-pools/dynamic-poolifier.mjs
benchmarks/versus-external-pools/fixed-poolifier.mjs

index ab527ee90bb4c0a946138853fa2b19793d24c5e4..e2901e5a72c5b56ce4b98a246df5e9d81d1ab536 100644 (file)
@@ -12,7 +12,10 @@ const data = {
 const dynamicPool = new DynamicThreadPool(
   Math.floor(size / 2),
   size,
-  './workers/poolifier/function-to-bench-worker.mjs'
+  './workers/poolifier/function-to-bench-worker.mjs',
+  {
+    enableTasksQueue: true
+  }
 )
 
 async function run () {
index 91fc4027e5eb468174511b9018687fdff9417831..aaccf5406b54a80dd281159b6c39ca577b22c338 100644 (file)
@@ -11,7 +11,10 @@ const data = {
 
 const fixedPool = new FixedThreadPool(
   size,
-  './workers/poolifier/function-to-bench-worker.mjs'
+  './workers/poolifier/function-to-bench-worker.mjs',
+  {
+    enableTasksQueue: true
+  }
 )
 
 async function run () {