X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fversus-external-pools%2Ffunctions%2Ffunction-to-bench.js;h=ff13bc9ecd2ad04fb034bab8a622198ad748e10a;hb=4a2cbff6a253589b5ceec0f0fde0ff4f5956a716;hp=eca756b715d3a0052c99db37aafe9cc6ab1e3492;hpb=de2e7182cca6b34b000a09bf6d0ddcff4757db3a;p=poolifier.git diff --git a/benchmarks/versus-external-pools/functions/function-to-bench.js b/benchmarks/versus-external-pools/functions/function-to-bench.js index eca756b7..ff13bc9e 100644 --- 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. */ -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'