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 <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>
  • Loading branch information
peterjreynoldsii authored and BridgeAR committed Oct 15, 2018
1 parent c0014d5 commit 7e2edc5
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 7e2edc5

Please sign in to comment.