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

Function run

benchmark/streams/iter-file-read.js:46–50  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

44
45function benchClassic(filesize, n, totalOps) {
46 function run(cb) {
47 const r = fs.createReadStream(filename);
48 const w = new Writable({ write(data, enc, cb) { cb(); } });
49 pipeline(r, w, cb);
50 }
51
52 // Warmup
53 run(() => {

Callers 3

benchClassicFunction · 0.70
benchWebStreamFunction · 0.70
benchIterFunction · 0.70

Calls 8

pipeToFunction · 0.85
openMethod · 0.65
closeMethod · 0.65
pipelineFunction · 0.50
createReadStreamMethod · 0.45
readableWebStreamMethod · 0.45
pipeToMethod · 0.45
pullMethod · 0.45

Tested by

no test coverage detected