repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump rollup from 2.41.5 to 2.42.0 (#283)
[poolifier.git]
/
benchmarks
/
versus-external-pools
/
dynamic-poolifier.js
diff --git
a/benchmarks/versus-external-pools/dynamic-poolifier.js
b/benchmarks/versus-external-pools/dynamic-poolifier.js
index 42c06e62aaa15b363ca8120f3db463f8a95be185..b20082a3541dfc9237c311a6c07c831fbe9721e8 100644
(file)
--- a/
benchmarks/versus-external-pools/dynamic-poolifier.js
+++ b/
benchmarks/versus-external-pools/dynamic-poolifier.js
@@
-1,5
+1,5
@@
// IMPORT LIBRARIES
// IMPORT LIBRARIES
-const {
FixedThreadPool,
DynamicThreadPool } = require('poolifier')
+const { DynamicThreadPool } = require('poolifier')
// FINISH IMPORT LIBRARIES
const size = process.env.POOL_SIZE
const iterations = process.env.NUM_ITERATIONS
// FINISH IMPORT LIBRARIES
const size = process.env.POOL_SIZE
const iterations = process.env.NUM_ITERATIONS
@@
-9,7
+9,7
@@
const data = {
}
const dynamicPool = new DynamicThreadPool(
}
const dynamicPool = new DynamicThreadPool(
-
size
,
+
Number(size)
,
size * 3,
'./workers/poolifier/function-to-bench-worker.js'
)
size * 3,
'./workers/poolifier/function-to-bench-worker.js'
)