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