Skip to content

Commit

Permalink
test: added async-hook benchmark
Browse files Browse the repository at this point in the history
Added a minimalist benchmark test for the async-hooks.

PR-URL: #23556
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Gabriel Schulhof <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
peterjreynoldsii authored and MylesBorins committed Nov 29, 2018
1 parent fcd273e commit 402cb65
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/sequential/test-benchmark-async-hooks.js
Original file line number Diff line number Diff line change
@@ -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'
],
{});

0 comments on commit 402cb65

Please sign in to comment.