repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into elu-strategy
[poolifier.git]
/
benchmarks
/
benchmarks-utils.js
diff --git
a/benchmarks/benchmarks-utils.js
b/benchmarks/benchmarks-utils.js
index 743936dabdbef3b1963fb63ce092b28881226d9b..eb3a4f945f40a64a95e010fe375b81c4bb874090 100644
(file)
--- a/
benchmarks/benchmarks-utils.js
+++ b/
benchmarks/benchmarks-utils.js
@@
-114,15
+114,15
@@
function executeWorkerFunction (data) {
function buildPool (workerType, poolType, poolSize, poolOptions) {
switch (poolType) {
function buildPool (workerType, poolType, poolSize, poolOptions) {
switch (poolType) {
- case PoolTypes.
FIXED
:
+ case PoolTypes.
fixed
:
switch (workerType) {
switch (workerType) {
- case WorkerTypes.
THREAD
:
+ case WorkerTypes.
thread
:
return new FixedThreadPool(
poolSize,
'./benchmarks/internal/thread-worker.js',
poolOptions
)
return new FixedThreadPool(
poolSize,
'./benchmarks/internal/thread-worker.js',
poolOptions
)
- case WorkerTypes.
CLUSTER
:
+ case WorkerTypes.
cluster
:
return new FixedClusterPool(
poolSize,
'./benchmarks/internal/cluster-worker.js',
return new FixedClusterPool(
poolSize,
'./benchmarks/internal/cluster-worker.js',
@@
-130,16
+130,16
@@
function buildPool (workerType, poolType, poolSize, poolOptions) {
)
}
break
)
}
break
- case PoolTypes.
DYNAMIC
:
+ case PoolTypes.
dynamic
:
switch (workerType) {
switch (workerType) {
- case WorkerTypes.
THREAD
:
+ case WorkerTypes.
thread
:
return new DynamicThreadPool(
poolSize / 2,
poolSize * 3,
'./benchmarks/internal/thread-worker.js',
poolOptions
)
return new DynamicThreadPool(
poolSize / 2,
poolSize * 3,
'./benchmarks/internal/thread-worker.js',
poolOptions
)
- case WorkerTypes.
CLUSTER
:
+ case WorkerTypes.
cluster
:
return new DynamicClusterPool(
poolSize / 2,
poolSize * 3,
return new DynamicClusterPool(
poolSize / 2,
poolSize * 3,