From 400aac8c5fc391817095087def4a3a3fbaaa8503 Mon Sep 17 00:00:00 2001 From: Denys Otrishko Date: Wed, 15 Aug 2018 16:04:58 +0300 Subject: [PATCH] test: add v8 benchmark test Refs: https://github.com/nodejs/node/issues/12068 PR-URL: https://github.com/nodejs/node/pull/22335 Reviewed-By: Rich Trott Reviewed-By: James M Snell Reviewed-By: Anna Henningsen --- test/parallel/test-benchmark-v8.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/parallel/test-benchmark-v8.js diff --git a/test/parallel/test-benchmark-v8.js b/test/parallel/test-benchmark-v8.js new file mode 100644 index 00000000000000..22861785db9c05 --- /dev/null +++ b/test/parallel/test-benchmark-v8.js @@ -0,0 +1,12 @@ +'use strict'; + +require('../common'); + +const runBenchmark = require('../common/benchmark'); + +runBenchmark('v8', + [ + 'method=getHeapStatistics', + 'n=1' + ], + { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });