repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs: switch all issue templates to yaml
[poolifier.git]
/
benchmarks
/
benchmarks-utils.mjs
diff --git
a/benchmarks/benchmarks-utils.mjs
b/benchmarks/benchmarks-utils.mjs
index c88ada12fa61eda4c474b4142bbd81dbb59ae06d..48c8fc3e7cb7dacd019a4ca3ac8fa28749c61db5 100644
(file)
--- a/
benchmarks/benchmarks-utils.mjs
+++ b/
benchmarks/benchmarks-utils.mjs
@@
-1,12
+1,14
@@
-import crypto from 'crypto'
-import fs from 'fs'
+import crypto from '
node:
crypto'
+import fs from '
node:
fs'
import {
DynamicClusterPool,
DynamicThreadPool,
FixedClusterPool,
import {
DynamicClusterPool,
DynamicThreadPool,
FixedClusterPool,
- FixedThreadPool
+ FixedThreadPool,
+ PoolTypes,
+ WorkerTypes
} from '../lib/index.mjs'
} from '../lib/index.mjs'
-import {
PoolTypes, WorkerFunctions, WorkerType
s } from './benchmarks-types.mjs'
+import {
WorkerFunction
s } from './benchmarks-types.mjs'
export const runTest = async (pool, { taskExecutions, workerData }) => {
return new Promise((resolve, reject) => {
export const runTest = async (pool, { taskExecutions, workerData }) => {
return new Promise((resolve, reject) => {