mirror of
https://github.com/nodejs/node.git
synced 2025-05-22 16:07:07 +00:00

PR-URL: https://github.com/nodejs/node/pull/31100 Refs: https://github.com/nodejs/diagnostics/issues/124 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
21 lines
468 B
JavaScript
21 lines
468 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
|
|
if (!common.hasCrypto)
|
|
common.skip('missing crypto');
|
|
|
|
if (!common.enoughTestMem)
|
|
common.skip('Insufficient memory for async_hooks benchmark test');
|
|
|
|
const runBenchmark = require('../common/benchmark');
|
|
|
|
runBenchmark('async_hooks',
|
|
[
|
|
'asyncHooks=all',
|
|
'connections=50',
|
|
'method=trackingDisabled',
|
|
'n=10'
|
|
],
|
|
{});
|