repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: v2.4.0
[poolifier.git]
/
benchmarks
/
versus-external-pools
/
fixed-worker-nodes.js
diff --git
a/benchmarks/versus-external-pools/fixed-worker-nodes.js
b/benchmarks/versus-external-pools/fixed-worker-nodes.js
index 2d4e7c2226118181b19e24537e236f3b35fd4529..49f8637ded36feb2e43b2d3796607622b1ae7fc0 100644
(file)
--- a/
benchmarks/versus-external-pools/fixed-worker-nodes.js
+++ b/
benchmarks/versus-external-pools/fixed-worker-nodes.js
@@
-1,12
+1,12
@@
// IMPORT LIBRARIES
const WorkerNodes = require('worker-nodes')
// FINISH IMPORT LIBRARIES
// IMPORT LIBRARIES
const WorkerNodes = require('worker-nodes')
// FINISH IMPORT LIBRARIES
-const size =
Number
(process.env.POOL_SIZE)
-const iterations =
Number
(process.env.NUM_ITERATIONS)
+const size =
parseInt
(process.env.POOL_SIZE)
+const iterations =
parseInt
(process.env.NUM_ITERATIONS)
const data = {
test: 'MYBENCH',
taskType: process.env.TASK_TYPE,
const data = {
test: 'MYBENCH',
taskType: process.env.TASK_TYPE,
- taskSize: p
rocess.env.TASK_SIZE
+ taskSize: p
arseInt(process.env.TASK_SIZE)
}
const workerNodes = new WorkerNodes(
}
const workerNodes = new WorkerNodes(
@@
-24,7
+24,7
@@
async function run () {
promises.push(workerNodes.call.functionToBench(data))
}
await Promise.all(promises)
promises.push(workerNodes.call.functionToBench(data))
}
await Promise.all(promises)
- // eslint-disable-next-line no-process-exit
+ // eslint-disable-next-line n
/n
o-process-exit
process.exit()
}
process.exit()
}