MCPcopy Create free account
hub / github.com/nodejs/node / main

Function main

benchmark/diagnostics_channel/subscribe.js:11–18  ·  view source on GitHub ↗
({ n })

Source from the content-addressed store, hash-verified

9function noop() { }
10
11function main({ n }) {
12
13 bench.start();
14 for (let i = 0; i < n; i++) {
15 dc.subscribe('channel.0', noop);
16 }
17 bench.end(n);
18}

Callers

nothing calls this directly

Calls 3

startMethod · 0.45
subscribeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected