Lines Matching defs:const

3 const child_process = require('child_process');
4 const http_benchmarkers = require('./_http-benchmarkers.js');
30 const argv = process.argv.slice(2);
31 const parsed_args = this._parseArgs(argv, configs, options);
64 const cliOptions = {};
67 const testIndex = argv.indexOf('--test');
69 for (const [key, rawValue] of Object.entries(configs)) {
83 for (const [key, value] of Object.entries(options.test)) {
90 for (const [key, value] of Object.entries(configs)) {
96 const extraOptions = {};
97 const validArgRE = /^(.+?)=([\s\S]*)$/;
99 for (const arg of argv) {
100 const match = arg.match(validArgRE);
105 const [, key, value] = match;
121 const queue = [];
122 const keys = Object.keys(options);
123 const { combinationFilter } = this;
128 const key = keys[keyIndex];
129 const values = options[key];
131 for (const value of values) {
142 const currConfig = { [key]: value, ...prevConfig };
148 const allowed = combinationFilter({ ...currConfig });
170 const http_options = { ...options };
200 const recursive = (queueIndex) => {
201 const config = this.queue[queueIndex];
206 const childEnv = { ...process.env };
210 const childArgs = [];
211 for (const [key, value] of Object.entries(config)) {
214 for (const [key, value] of Object.entries(this.extra_options)) {
218 const child = child_process.fork(require.main.filename, childArgs, {
247 const time = process.hrtime.bigint();
272 const elapsed = time - this._time;
273 const rate = operations / (Number(elapsed) / 1e9);
289 const str = bigint.toString();
290 const decimalPointIndex = str.length - 9;
300 for (const key of Object.keys(data.conf)) {
328 const urls = {
343 const searchParams = {
358 const data = require('../test/fixtures/wpt/url/resources/urltestdata.json');
359 const result = [];
360 for (const item of data) {
389 const input = urls[type];
390 const item = withBase ? [input, 'about:blank'] : input;
421 const { internalBinding } = require('internal/test/binding');