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

Function processHeaderFragmented

benchmark/http/bench-parser-fragmented.js:21–33  ·  view source on GitHub ↗
(fragments, n)

Source from the content-addressed store, hash-verified

19 const kOnMessageComplete = HTTPParser.kOnMessageComplete | 0;
20
21 function processHeaderFragmented(fragments, n) {
22 const parser = newParser(REQUEST);
23
24 bench.start();
25 for (let i = 0; i < n; i++) {
26 // Send header in fragments
27 for (const frag of fragments) {
28 parser.execute(frag, 0, frag.length);
29 }
30 parser.initialize(REQUEST, {});
31 }
32 bench.end(n);
33 }
34
35 function newParser(type) {
36 const parser = new HTTPParser();

Callers 1

mainFunction · 0.85

Calls 5

newParserFunction · 0.70
startMethod · 0.45
executeMethod · 0.45
initializeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…