repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): bump rollup
[poolifier.git]
/
benchmarks
/
versus-external-pools
/
functions
/
function-to-bench.js
diff --git
a/benchmarks/versus-external-pools/functions/function-to-bench.js
b/benchmarks/versus-external-pools/functions/function-to-bench.js
index eca756b715d3a0052c99db37aafe9cc6ab1e3492..ff13bc9ecd2ad04fb034bab8a622198ad748e10a 100644
(file)
--- a/
benchmarks/versus-external-pools/functions/function-to-bench.js
+++ b/
benchmarks/versus-external-pools/functions/function-to-bench.js
@@
-5,9
+5,9
@@
* @param {*} data The worker data.
* @returns {*} The result.
*/
* @param {*} data The worker data.
* @returns {*} The result.
*/
-const functionToBench =
(data)
=> {
- const crypto = require('crypto')
- const fs = require('fs')
+const functionToBench =
data
=> {
+ const crypto = require('
node:
crypto')
+ const fs = require('
node:
fs')
const TaskTypes = {
CPU_INTENSIVE: 'CPU_INTENSIVE',
IO_INTENSIVE: 'IO_INTENSIVE'
const TaskTypes = {
CPU_INTENSIVE: 'CPU_INTENSIVE',
IO_INTENSIVE: 'IO_INTENSIVE'