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