diff --git a/benchmark/process/resourceUsage.js b/benchmark/process/resourceUsage.js new file mode 100644 index 00000000000000..83871db680b3b7 --- /dev/null +++ b/benchmark/process/resourceUsage.js @@ -0,0 +1,14 @@ +'use strict'; + +const common = require('../common.js'); +const bench = common.createBenchmark(main, { + n: [1e5] +}); + +function main({ n }) { + bench.start(); + for (let i = 0; i < n; i++) { + process.resourceUsage(); + } + bench.end(n); +}