mirror of
https://github.com/nodejs/node.git
synced 2025-05-12 10:57:28 +00:00

Added a minimalist benchmark test for the async-hooks. PR-URL: https://github.com/nodejs/node/pull/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>
19 lines
402 B
JavaScript
19 lines
402 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',
|
|
[
|
|
'method=trackingDisabled',
|
|
'n=10'
|
|
],
|
|
{});
|