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

Function main

benchmark/util/normalize-encoding.js:46–59  ·  view source on GitHub ↗
({ input, n })

Source from the content-addressed store, hash-verified

44}
45
46function main({ input, n }) {
47 const { normalizeEncoding } = require('internal/util');
48 const inputs = getInput(input);
49 let noDead = '';
50
51 bench.start();
52 for (let i = 0; i < n; ++i) {
53 for (let j = 0; j < inputs.length; ++j) {
54 noDead = normalizeEncoding(inputs[j]);
55 }
56 }
57 bench.end(n);
58 assert.ok(noDead === undefined || noDead.length > 0);
59}

Callers

nothing calls this directly

Calls 6

normalizeEncodingFunction · 0.85
getInputFunction · 0.70
requireFunction · 0.50
startMethod · 0.45
endMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…