repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump typedoc from 0.20.30 to 0.20.31 (#272)
[poolifier.git]
/
benchmarks
/
internal
/
cluster
/
fixed.js
diff --git
a/benchmarks/internal/cluster/fixed.js
b/benchmarks/internal/cluster/fixed.js
index ea61c7fcb398a40326a19f0935b7f13268050cde..fc4cc3ac8dc545ba4b8d530401b19ac396f1f02c 100644
(file)
--- a/
benchmarks/internal/cluster/fixed.js
+++ b/
benchmarks/internal/cluster/fixed.js
@@
-5,6
+5,7
@@
const {
const { runPoolifierTest } = require('../benchmark-utils')
const size = 30
const { runPoolifierTest } = require('../benchmark-utils')
const size = 30
+const numberOfTasks = 1
const fixedPool = new FixedClusterPool(
size,
const fixedPool = new FixedClusterPool(
size,
@@
-18,13
+19,13
@@
const fixedPoolLessRecentlyUsed = new FixedClusterPool(
)
async function fixedClusterTest (
)
async function fixedClusterTest (
- { tasks, workerData } = { tasks:
1
, workerData: { proof: 'ok' } }
+ { tasks, workerData } = { tasks:
numberOfTasks
, workerData: { proof: 'ok' } }
) {
return runPoolifierTest(fixedPool, { tasks, workerData })
}
async function fixedClusterTestLessRecentlyUsed (
) {
return runPoolifierTest(fixedPool, { tasks, workerData })
}
async function fixedClusterTestLessRecentlyUsed (
- { tasks, workerData } = { tasks:
1
, workerData: { proof: 'ok' } }
+ { tasks, workerData } = { tasks:
numberOfTasks
, workerData: { proof: 'ok' } }
) {
return runPoolifierTest(fixedPoolLessRecentlyUsed, { tasks, workerData })
}
) {
return runPoolifierTest(fixedPoolLessRecentlyUsed, { tasks, workerData })
}