mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
test: added async-hook benchmark
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>
This commit is contained in:
parent
c0014d5ff0
commit
7e2edc5f55
18
test/sequential/test-benchmark-async-hooks.js
Normal file
18
test/sequential/test-benchmark-async-hooks.js
Normal file
@ -0,0 +1,18 @@
|
||||
'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'
|
||||
],
|
||||
{});
|
Loading…
Reference in New Issue
Block a user