Benchmarks and performance enhancements (#209)
[poolifier.git] / benchmarks / internal / cluster / fixed.js
similarity index 75%
rename from benchmarks/cluster/fixed.js
rename to benchmarks/internal/cluster/fixed.js
index c8fe7132a60acd24d94e178517c9756cd0511955..f2b80c7198d71872e6ad858c7db661b1894ee46b 100644 (file)
@@ -1,10 +1,14 @@
-const { FixedClusterPool } = require('../../lib/index')
+const { FixedClusterPool } = require('../../../lib/index')
 
 const size = 30
 
-const fixedPool = new FixedClusterPool(size, './benchmarks/cluster/worker.js', {
-  maxTasks: 10000
-})
+const fixedPool = new FixedClusterPool(
+  size,
+  './benchmarks/internal/cluster/worker.js',
+  {
+    maxTasks: 10000
+  }
+)
 
 async function fixedClusterTest (
   { tasks, workerData } = { tasks: 1, workerData: { proof: 'ok' } }