summaryrefslogtreecommitdiff
path: root/benchmark/misc
diff options
context:
space:
mode:
authorBartosz Sosnowski <bartosz@janeasystems.com>2016-09-16 12:01:51 +0200
committerBartosz Sosnowski <bartosz@janeasystems.com>2016-09-26 17:23:49 +0200
commit9e5a06ecf67442afa3e6f2cb62077e7de12de4e1 (patch)
tree044a03bfa8fda89588bd1f85eccb3dda0ee1f4cf /benchmark/misc
parent99a2dd03cd286176d639ec898a08f27c1567f85c (diff)
downloadnode-new-9e5a06ecf67442afa3e6f2cb62077e7de12de4e1.tar.gz
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/misc')
-rw-r--r--benchmark/misc/v8-bench.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/benchmark/misc/v8-bench.js b/benchmark/misc/v8-bench.js
index 9c0448a510..85c64b51fd 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
});