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 <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
Denys Otrishko authored and Michaël Zasso committed 2018-09-06 08:52:21 +02:00
1 parent c9c8b290a3
commit 594b2377bc
1 file changed
+12
+12
View File
@@ -0,0 +1,12 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('v8',
[
'method=getHeapStatistics',
'n=1'
],
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });