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