mirror of
https://github.com/nodejs/node.git
synced 2025-05-07 12:03:30 +00:00

Remove the need for the destroy hook in the basic APM case. Co-authored-by: Stephen Belanger <admin@stephenbelanger.com> PR-URL: https://github.com/nodejs/node/pull/30959 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
23 lines
542 B
JavaScript
23 lines
542 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',
|
|
'type=async-resource',
|
|
'asyncMethod=async'
|
|
],
|
|
{});
|