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