perf: export also JSON results with external pools benchmark
[poolifier.git] / benchmarks / versus-external-pools / functions / function-to-bench.js
index ecc39a1c92be59327bd6b7d9d141c8bbf485b4be..ff13bc9ecd2ad04fb034bab8a622198ad748e10a 100644 (file)
@@ -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'