Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82d4175 commit 7fc3143Copy full SHA for 7fc3143
benchmark/diagnostics_channel/subscribe.js
@@ -3,17 +3,16 @@ const common = require('../common.js');
3
const dc = require('diagnostics_channel');
4
5
const bench = common.createBenchmark(main, {
6
- n: [1e8],
+ n: [1e5],
7
});
8
9
-function noop() {}
+function noop() { }
10
11
function main({ n }) {
12
- const channel = dc.channel('channel.0');
13
14
bench.start();
15
for (let i = 0; i < n; i++) {
16
- channel.subscribe(noop);
+ dc.subscribe('channel.0', noop);
17
}
18
bench.end(n);
19
0 commit comments