Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
9
function
noop() { }
10
11
function
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
start
Method · 0.45
subscribe
Method · 0.45
end
Method · 0.45
Tested by
no test coverage detected