({ type, n, streams, chunks })
| 24 | }); |
| 25 | |
| 26 | function main({ type, n, streams, chunks }) { |
| 27 | switch (type) { |
| 28 | case 'creation': |
| 29 | return benchCreation(n, streams); |
| 30 | case 'throughput': |
| 31 | return benchThroughput(n, streams, chunks); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | function benchCreation(n, numberOfPassThroughs) { |
| 36 | const cachedPassThroughs = []; |
nothing calls this directly
no test coverage detected
searching dependent graphs…