Skip to content

Commit

Permalink
test: add v8 benchmark test
Browse files Browse the repository at this point in the history
Refs: #12068

PR-URL: #22335
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
lundibundi authored and targos committed Sep 6, 2018
1 parent c9c8b29 commit 594b237
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/parallel/test-benchmark-v8.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
'use strict';

require('../common');

const runBenchmark = require('../common/benchmark');

runBenchmark('v8',
[
'method=getHeapStatistics',
'n=1'
],
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

0 comments on commit 594b237

Please sign in to comment.