repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): apply updates
[poolifier.git]
/
benchmarks
/
internal
/
cluster-worker.cjs
diff --git
a/benchmarks/internal/cluster-worker.cjs
b/benchmarks/internal/cluster-worker.cjs
index 94980725624e9897db66b55b0fda6a3392776b38..40d614c7364fe17feaa41bec8c3742842f450832 100644
(file)
--- a/
benchmarks/internal/cluster-worker.cjs
+++ b/
benchmarks/internal/cluster-worker.cjs
@@
-5,9
+5,10
@@
const { TaskFunctions } = require('../benchmarks-types.cjs')
const taskFunction = data => {
data = data || {}
const taskFunction = data => {
data = data || {}
- data.function = data.function || TaskFunctions.
jsonIntegerSerialization
+ data.function = data.function || TaskFunctions.
factorial
data.debug = data.debug || false
const res = executeTaskFunction(data)
data.debug = data.debug || false
const res = executeTaskFunction(data)
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
data.debug === true && console.debug(`This is the main thread ${isPrimary}`)
return res
}
data.debug === true && console.debug(`This is the main thread ${isPrimary}`)
return res
}