X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fversus-external-pools%2Ffunctions%2Ffunction-to-bench.js;h=ff13bc9ecd2ad04fb034bab8a622198ad748e10a;hb=9d698f93d3cb8c2567f9a92aa29ab35d035725b4;hp=ecc39a1c92be59327bd6b7d9d141c8bbf485b4be;hpb=a7263cc7976423d318bd3a82d1a60b2f39b6e2c5;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 ecc39a1c..ff13bc9e 100644 --- a/benchmarks/versus-external-pools/functions/function-to-bench.js +++ b/benchmarks/versus-external-pools/functions/function-to-bench.js @@ -6,8 +6,8 @@ * @returns {*} The result. */ const functionToBench = data => { - const crypto = require('crypto') - const fs = require('fs') + const crypto = require('node:crypto') + const fs = require('node:fs') const TaskTypes = { CPU_INTENSIVE: 'CPU_INTENSIVE', IO_INTENSIVE: 'IO_INTENSIVE'