Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/node
/ publishWithoutCheck
Function
publishWithoutCheck
benchmark/diagnostics_channel/publish.js:44–51 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
42
};
43
44
const
publishWithoutCheck = () => {
45
const
data = createObj(objSize);
46
bench.start();
47
for
(
let
i = 0; i < n; i++) {
48
channel.publish(data);
49
}
50
bench.end(n);
51
};
52
53
if
(checkSubscribers) {
54
publishWithCheck();
Callers
1
main
Function · 0.85
Calls
4
createObj
Function · 0.70
start
Method · 0.45
publish
Method · 0.45
end
Method · 0.45
Tested by
no test coverage detected