repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: make TS example compatible with latest ES version
[poolifier.git]
/
benchmarks
/
internal
/
cluster-worker.mjs
diff --git
a/benchmarks/internal/cluster-worker.mjs
b/benchmarks/internal/cluster-worker.mjs
index 50e4a324a98a580206db83a3dc3dc40bf80efc32..2ec78054e655f25f181e888c0f90b6bd28ba4b66 100644
(file)
--- a/
benchmarks/internal/cluster-worker.mjs
+++ b/
benchmarks/internal/cluster-worker.mjs
@@
-5,12
+5,12
@@
import { WorkerFunctions } from '../benchmarks-types.mjs'
const debug = false
const debug = false
-function
you
rFunction (data) {
+function
worke
rFunction (data) {
data = data || {}
data.function = data.function || WorkerFunctions.jsonIntegerSerialization
data = data || {}
data.function = data.function || WorkerFunctions.jsonIntegerSerialization
- executeWorkerFunction(data)
+
const res =
executeWorkerFunction(data)
debug === true && console.debug('This is the main thread ' + isMaster)
debug === true && console.debug('This is the main thread ' + isMaster)
- return
{ ok: 1 }
+ return
res
}
}
-export default new ClusterWorker(
you
rFunction)
+export default new ClusterWorker(
worke
rFunction)