MCPcopy Index your code
hub / github.com/nodejs/node / main

Function main

benchmark/url/url-searchparams-creation.js:66–79  ·  view source on GitHub ↗
({ n, type, inputType })

Source from the content-addressed store, hash-verified

64});
65
66function main({ n, type, inputType }) {
67 const inputs = paramGenerator(inputType);
68 const input = inputs[type];
69
70 // Force optimization before starting the benchmark
71 for (const name in inputs) {
72 new URLSearchParams(inputs[name]);
73 }
74
75 bench.start();
76 for (let i = 0; i < n; i += 1)
77 new URLSearchParams(input);
78 bench.end(n);
79}

Callers

nothing calls this directly

Calls 3

paramGeneratorFunction · 0.70
startMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…