mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 23:43:09 +01:00
5021b259ed
PR-URL: https://github.com/nodejs/node/pull/25410 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
16 lines
289 B
JavaScript
16 lines
289 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common.js');
|
|
const networkInterfaces = require('os').networkInterfaces;
|
|
|
|
const bench = common.createBenchmark(main, {
|
|
n: [1e4]
|
|
});
|
|
|
|
function main({ n }) {
|
|
bench.start();
|
|
for (var i = 0; i < n; ++i)
|
|
networkInterfaces();
|
|
bench.end(n);
|
|
}
|