repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix npm publication
[poolifier.git]
/
benchmarks
/
versus-external-pools
/
fixed-piscina.js
diff --git
a/benchmarks/versus-external-pools/fixed-piscina.js
b/benchmarks/versus-external-pools/fixed-piscina.js
index d01644445a4dff824b3d8df8dfcf119ae2d9f6fb..d1f785edeb31f1ff21870d13b987e8234597a22b 100644
(file)
--- a/
benchmarks/versus-external-pools/fixed-piscina.js
+++ b/
benchmarks/versus-external-pools/fixed-piscina.js
@@
-1,8
+1,8
@@
// IMPORT LIBRARIES
const Piscina = require('piscina')
// FINISH IMPORT LIBRARIES
// IMPORT LIBRARIES
const Piscina = require('piscina')
// FINISH IMPORT LIBRARIES
-const size =
process.env.POOL_SIZE
-const iterations =
process.env.NUM_ITERATIONS
+const size =
Number(process.env.POOL_SIZE)
+const iterations =
Number(process.env.NUM_ITERATIONS)
const data = {
test: 'MYBENCH',
taskType: process.env['TASK_TYPE']
const data = {
test: 'MYBENCH',
taskType: process.env['TASK_TYPE']
@@
-10,7
+10,7
@@
const data = {
const piscina = new Piscina({
filename: './workers/piscina/function-to-bench-worker.js',
const piscina = new Piscina({
filename: './workers/piscina/function-to-bench-worker.js',
- minThreads:
Number(size)
,
+ minThreads:
size
,
idleTimeout: 1000 * 60 // this is the same as poolifier default
})
idleTimeout: 1000 * 60 // this is the same as poolifier default
})