MCPcopy Create free account
hub / github.com/nodejs/undici / makeParallelRequests

Function makeParallelRequests

benchmarks/benchmark-https.js:135–137  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

133}
134
135function makeParallelRequests (cb) {
136 return Promise.all(Array.from(Array(parallelRequests)).map(() => new Promise(cb)))
137}
138
139function printResults (results) {
140 // Sort results by least performant first, then compare relative performances and also printing padding

Callers 7

'https - no keepalive'Function · 0.70
'https - keepalive'Function · 0.70
'undici - pipeline'Function · 0.70
'undici - request'Function · 0.70
'undici - stream'Function · 0.70
'undici - dispatch'Function · 0.70
benchmark-https.jsFile · 0.70

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected