repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump @types/node from 14.14.31 to 14.14.32 (#258)
[poolifier.git]
/
benchmarks
/
internal
/
cluster
/
dynamic.js
diff --git
a/benchmarks/internal/cluster/dynamic.js
b/benchmarks/internal/cluster/dynamic.js
index 7ad9dd282d5e27a7afcdcd10e9a0d4c860e4e75c..6838e07a9cad0e882f62c68d8d890f5ec4a003ea 100644
(file)
--- a/
benchmarks/internal/cluster/dynamic.js
+++ b/
benchmarks/internal/cluster/dynamic.js
@@
-2,7
+2,7
@@
const {
DynamicClusterPool,
WorkerChoiceStrategies
} = require('../../../lib/index')
DynamicClusterPool,
WorkerChoiceStrategies
} = require('../../../lib/index')
-const { runTest } = require('../benchmark-utils')
+const { run
Poolifier
Test } = require('../benchmark-utils')
const size = 30
const size = 30
@@
-22,13
+22,13
@@
const dynamicPoolLessRecentlyUsed = new DynamicClusterPool(
async function dynamicClusterTest (
{ tasks, workerData } = { tasks: 1, workerData: { proof: 'ok' } }
) {
async function dynamicClusterTest (
{ tasks, workerData } = { tasks: 1, workerData: { proof: 'ok' } }
) {
- return runTest(dynamicPool, { tasks, workerData })
+ return run
Poolifier
Test(dynamicPool, { tasks, workerData })
}
async function dynamicClusterTestLessRecentlyUsed (
{ tasks, workerData } = { tasks: 1, workerData: { proof: 'ok' } }
) {
}
async function dynamicClusterTestLessRecentlyUsed (
{ tasks, workerData } = { tasks: 1, workerData: { proof: 'ok' } }
) {
- return runTest(dynamicPoolLessRecentlyUsed, { tasks, workerData })
+ return run
Poolifier
Test(dynamicPoolLessRecentlyUsed, { tasks, workerData })
}
module.exports = {
}
module.exports = {