From 402cb65b8f09e94b022ab9e0c5ee9f1c36afdd57 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 12 Oct 2018 10:44:03 -0700 Subject: [PATCH] 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 Reviewed-By: Anna Henningsen Reviewed-By: Gabriel Schulhof Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Trivikram Kamat --- test/sequential/test-benchmark-async-hooks.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/sequential/test-benchmark-async-hooks.js diff --git a/test/sequential/test-benchmark-async-hooks.js b/test/sequential/test-benchmark-async-hooks.js new file mode 100644 index 00000000000000..4cb6f89a8c70e3 --- /dev/null +++ b/test/sequential/test-benchmark-async-hooks.js @@ -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' + ], + {});