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

Function source

benchmark/streams/iter-from-batching.js:41–45  ·  view source on GitHub ↗
(chunks, chunk)

Source from the content-addressed store, hash-verified

39}
40
41function* source(chunks, chunk) {
42 for (let i = 0; i < chunks; i++) {
43 yield chunk;
44 }
45}
46
47function benchFromFirstBatch(chunks, chunkSize, n) {
48 const { from } = require('stream/iter');

Callers 2

benchFromFirstBatchFunction · 0.70
benchFromSyncWritevFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected