refactor: cleanup benchmark code
[poolifier.git] / benchmarks / versus-external-pools / dynamic-node-worker-threads-pool.mjs
index ed8285026c740b93cec25465f6c2835e9a53931f..08535b68e1eabc78d6c9fc2437c1244324a697e3 100644 (file)
@@ -10,13 +10,13 @@ const data = {
   taskSize: parseInt(process.env.TASK_SIZE)
 }
 
-const pool = new DynamicPool(size)
+const dynamicPool = new DynamicPool(size)
 
 async function run () {
   const promises = new Set()
   for (let i = 0; i < iterations; i++) {
     promises.add(
-      pool.exec({
+      dynamicPool.exec({
         task: functionToBench,
         param: data,
         timeout: 60000 // this is the same as poolifier default