repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: v3.1.26
[poolifier.git]
/
benchmarks
/
internal
/
bench.mjs
diff --git
a/benchmarks/internal/bench.mjs
b/benchmarks/internal/bench.mjs
index 368cf29c949f487b3223b5dd90c74beedcd359d1..b59514d225b45adf149f011798156af1a7bcf675 100644
(file)
--- a/
benchmarks/internal/bench.mjs
+++ b/
benchmarks/internal/bench.mjs
@@
-1,10
+1,12
@@
+import { exit } from 'node:process'
+
import {
import {
+ availableParallelism,
PoolTypes,
PoolTypes,
- WorkerTypes,
- availableParallelism
+ WorkerTypes
} from '../../lib/index.mjs'
} from '../../lib/index.mjs'
-import { TaskFunctions } from '../benchmarks-types.js'
-import { runPoolifierPoolBenchmark } from '../benchmarks-utils.js'
+import { TaskFunctions } from '../benchmarks-types.
c
js'
+import { runPoolifierPoolBenchmark } from '../benchmarks-utils.
c
js'
const poolSize = availableParallelism()
const taskExecutions = 1
const poolSize = availableParallelism()
const taskExecutions = 1
@@
-15,7
+17,7
@@
const workerData = {
// FixedThreadPool
await runPoolifierPoolBenchmark(
// FixedThreadPool
await runPoolifierPoolBenchmark(
- '
Poolifier
FixedThreadPool',
+ 'FixedThreadPool',
WorkerTypes.thread,
PoolTypes.fixed,
poolSize,
WorkerTypes.thread,
PoolTypes.fixed,
poolSize,
@@
-27,7
+29,7
@@
await runPoolifierPoolBenchmark(
// DynamicThreadPool
await runPoolifierPoolBenchmark(
// DynamicThreadPool
await runPoolifierPoolBenchmark(
- '
Poolifier
DynamicThreadPool',
+ 'DynamicThreadPool',
WorkerTypes.thread,
PoolTypes.dynamic,
poolSize,
WorkerTypes.thread,
PoolTypes.dynamic,
poolSize,
@@
-39,7
+41,7
@@
await runPoolifierPoolBenchmark(
// FixedClusterPool
await runPoolifierPoolBenchmark(
// FixedClusterPool
await runPoolifierPoolBenchmark(
- '
Poolifier
FixedClusterPool',
+ 'FixedClusterPool',
WorkerTypes.cluster,
PoolTypes.fixed,
poolSize,
WorkerTypes.cluster,
PoolTypes.fixed,
poolSize,
@@
-51,7
+53,7
@@
await runPoolifierPoolBenchmark(
// DynamicClusterPool
await runPoolifierPoolBenchmark(
// DynamicClusterPool
await runPoolifierPoolBenchmark(
- '
Poolifier
DynamicClusterPool',
+ 'DynamicClusterPool',
WorkerTypes.cluster,
PoolTypes.dynamic,
poolSize,
WorkerTypes.cluster,
PoolTypes.dynamic,
poolSize,
@@
-60,3
+62,5
@@
await runPoolifierPoolBenchmark(
workerData
}
)
workerData
}
)
+
+exit()