repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
perf(benchmark): port to homemade mitata fork
[poolifier.git]
/
benchmarks
/
benchmarks-utils.mjs
diff --git
a/benchmarks/benchmarks-utils.mjs
b/benchmarks/benchmarks-utils.mjs
index 5db55b3b11c9b8c956e46397674e71a34471d241..48101fdaadc434073f81906a0ad0d7095e3f675a 100644
(file)
--- a/
benchmarks/benchmarks-utils.mjs
+++ b/
benchmarks/benchmarks-utils.mjs
@@
-1,7
+1,7
@@
import { strictEqual } from 'node:assert'
import Benchmark from 'benchmark'
import { strictEqual } from 'node:assert'
import Benchmark from 'benchmark'
-import { bench,
group
} from 'mitata'
+import { bench,
clear, group, run
} from 'mitata'
import {
DynamicClusterPool,
import {
DynamicClusterPool,
@@
-249,7
+249,7
@@
export const runPoolifierBenchmarkBenchmarkJsSuite = async (
})
}
})
}
-export const
buildPoolifierBenchmarkMitata =
(
+export const
runPoolifierBenchmarkMitata = async
(
name,
workerType,
poolType,
name,
workerType,
poolType,
@@
-313,7
+313,9
@@
export const buildPoolifierBenchmarkMitata = (
}
}
}
}
}
}
- return pool
+ await run()
+ await pool.destroy()
+ clear()
} catch (error) {
console.error(error)
}
} catch (error) {
console.error(error)
}