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

Function source

benchmark/streams/iter-throughput-compression.js:88–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86 async function run() {
87 let remaining = datasize;
88 async function* source() {
89 while (remaining > 0) {
90 const size = Math.min(remaining, chunk.length);
91 remaining -= size;
92 yield [size === chunk.length ? chunk : chunk.subarray(0, size)];
93 }
94 }
95 await pipeTo(source(), compressGzip(), decompressGzip(),
96 { write() {}, writeSync() { return true; } });
97 }

Callers 1

runFunction · 0.70

Calls 1

minMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…