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-poolifier.js
diff --git
a/benchmarks/versus-external-pools/fixed-poolifier.js
b/benchmarks/versus-external-pools/fixed-poolifier.js
index fbfd484ea51dc3a48f371a7a535a669659c41e05..2a5e599ab11aefc0948bb8ec208f3650ede4e02f 100644
(file)
--- a/
benchmarks/versus-external-pools/fixed-poolifier.js
+++ b/
benchmarks/versus-external-pools/fixed-poolifier.js
@@
-1,12
+1,12
@@
// IMPORT LIBRARIES
const { FixedThreadPool } = require('poolifier')
// FINISH IMPORT LIBRARIES
// IMPORT LIBRARIES
const { FixedThreadPool } = require('poolifier')
// 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 fixedPool = new FixedThreadPool(
}
const fixedPool = new FixedThreadPool(