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
/
fixed-poolifier.js
diff --git
a/benchmarks/versus-external-pools/fixed-poolifier.js
b/benchmarks/versus-external-pools/fixed-poolifier.js
index c994620899f15283d478b3d9494186607b109a66..f45734352c698cc49b836232ffc433ae792a3ed6 100644
(file)
--- a/
benchmarks/versus-external-pools/fixed-poolifier.js
+++ b/
benchmarks/versus-external-pools/fixed-poolifier.js
@@
-1,5
+1,5
@@
// IMPORT LIBRARIES
// IMPORT LIBRARIES
-const { FixedThreadPool
, DynamicThreadPool
} = require('poolifier')
+const { FixedThreadPool } = 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,11
+9,8
@@
const data = {
}
const fixedPool = new FixedThreadPool(
}
const fixedPool = new FixedThreadPool(
- size,
- './workers/poolifier/function-to-bench-worker.js',
- {
- maxTasks: 100000
- }
+ Number(size),
+ './workers/poolifier/function-to-bench-worker.js'
)
async function run () {
)
async function run () {