mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Rename different parameters with the same names to make it possible to run tests for url benchmarks. PR-URL: https://github.com/nodejs/node/pull/19084 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Shingo Inoue <leko.noor@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com>
23 lines
560 B
JavaScript
23 lines
560 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
|
|
const runBenchmark = require('../common/benchmark');
|
|
|
|
runBenchmark('url',
|
|
[
|
|
'method=legacy',
|
|
'loopMethod=forEach',
|
|
'accessMethod=get',
|
|
'type=short',
|
|
'searchParam=noencode',
|
|
'href=short',
|
|
'input=short',
|
|
'domain=empty',
|
|
'path=up',
|
|
'to=ascii',
|
|
'prop=href',
|
|
'n=1',
|
|
],
|
|
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
|