Skip to content

Commit 3604d78

Browse files
peterjreynoldsiijasnell
authored andcommitted
test: added async-hook benchmark
Added a minimalist benchmark test for the async-hooks. PR-URL: #23556 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 4118e90 commit 3604d78

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
'use strict';
2+
3+
const common = require('../common');
4+
5+
if (!common.hasCrypto)
6+
common.skip('missing crypto');
7+
8+
if (!common.enoughTestMem)
9+
common.skip('Insufficient memory for async_hooks benchmark test');
10+
11+
const runBenchmark = require('../common/benchmark');
12+
13+
runBenchmark('async_hooks',
14+
[
15+
'method=trackingDisabled',
16+
'n=10'
17+
],
18+
{});

0 commit comments

Comments
 (0)