• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2
3const common = require('../common.js');
4const networkInterfaces = require('os').networkInterfaces;
5
6const bench = common.createBenchmark(main, {
7  n: [1e4],
8});
9
10function main({ n }) {
11  bench.start();
12  for (let i = 0; i < n; ++i)
13    networkInterfaces();
14  bench.end(n);
15}
16