node/benchmark/process/memoryUsage.js
Antoine du Hamel 8036583f1f
benchmark: add trailing commas in benchmark/process
PR-URL: https://github.com/nodejs/node/pull/46481
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
2023-04-02 21:39:50 -04:00

14 lines
238 B
JavaScript

'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.memoryUsage();
}
bench.end(n);
}