mirror of
https://github.com/nodejs/node.git
synced 2025-05-19 20:06:58 +00:00

PR-URL: https://github.com/nodejs/node/pull/20125 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com>
24 lines
587 B
JavaScript
24 lines
587 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',
|
|
'param=one'
|
|
],
|
|
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
|