MCPcopy Create free account
hub / github.com/nodejs/node / main

Function main

benchmark/url/url-searchparams-update.js:18–29  ·  view source on GitHub ↗
({ searchParams, property, n })

Source from the content-addressed store, hash-verified

16}
17
18function main({ searchParams, property, n }) {
19 const url = new URL('https://nodejs.org');
20 if (searchParams === 'true') assert.ok(url.searchParams);
21
22 const method = getMethod(url, property);
23
24 bench.start();
25 for (let i = 0; i < n; i++) {
26 method(i);
27 }
28 bench.end(n);
29}

Callers

nothing calls this directly

Calls 5

getMethodFunction · 0.85
methodFunction · 0.50
okMethod · 0.45
startMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected