build: switch default to ESM
[poolifier.git] / benchmarks / internal / cluster-worker.js
diff --git a/benchmarks/internal/cluster-worker.js b/benchmarks/internal/cluster-worker.js
deleted file mode 100644 (file)
index 18bd648..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-const { isPrimary } = require('node:cluster')
-const { ClusterWorker } = require('../../lib')
-const { executeTaskFunction } = require('../benchmarks-utils.js')
-const { TaskFunctions } = require('../benchmarks-types.js')
-
-const taskFunction = data => {
-  data = data || {}
-  data.function = data.function || TaskFunctions.jsonIntegerSerialization
-  data.debug = data.debug || false
-  const res = executeTaskFunction(data)
-  data.debug === true && console.debug(`This is the main thread ${isPrimary}`)
-  return res
-}
-
-module.exports = new ClusterWorker(taskFunction)