diff options
author | Bartosz Sosnowski <bartosz@janeasystems.com> | 2016-09-16 13:01:51 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2016-09-29 21:14:57 +0300 |
commit | dfb5f301cf1ac9c85e16555aaf3eb070d2bfb6f0 (patch) | |
tree | 789fddc1cb10bb5c31dbe3cd2377391fcb4da6e8 /benchmark | |
parent | 84481f9157f193348040ab5e128efcd0a85ced4f (diff) |
benchmark: make v8-bench.js output consistent
This changes the way v8-bench.js reports its performance to be consistent
with other benchmarks.
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/8564
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/misc/v8-bench.js | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/benchmark/misc/v8-bench.js b/benchmark/misc/v8-bench.js index 9c0448a510d..85c64b51fda 100644 --- a/benchmark/misc/v8-bench.js +++ b/benchmark/misc/v8-bench.js @@ -23,6 +23,7 @@ load('regexp.js'); load('splay.js'); load('navier-stokes.js'); +const benchmark_name = path.join('misc', 'v8-bench.js'); const times = {}; global.BenchmarkSuite.RunSuites({ NotifyStart: function(name) { @@ -31,8 +32,10 @@ global.BenchmarkSuite.RunSuites({ NotifyResult: function(name, result) { const elapsed = process.hrtime(times[name]); common.sendResult({ - name: name, - conf: {}, + name: benchmark_name, + conf: { + benchmark: name + }, rate: result, time: elapsed[0] + elapsed[1] / 1e9 }); @@ -42,8 +45,10 @@ global.BenchmarkSuite.RunSuites({ }, NotifyScore: function(score) { common.sendResult({ - name: 'Score (version ' + global.BenchmarkSuite.version + ')', - conf: {}, + name: benchmark_name, + conf: { + benchmark: 'Score (version ' + global.BenchmarkSuite.version + ')' + }, rate: score, time: 0 }); |