Skip to content

Commit 3dbec2b

Browse files
committed
chore: easier quick reference in logs
1 parent 9cc826f commit 3dbec2b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/benchmarks/driverBench/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,12 @@ benchmarkRunner
106106
})
107107
.then(data => {
108108
const results = JSON.stringify(data, undefined, 2);
109-
console.log(inspect(data, { depth: Infinity, colors: true }));
109+
const print_results = data.map(({ info: { test_name, args }, metrics: [{ value }] }) => ({
110+
test_name,
111+
args,
112+
value
113+
}));
114+
console.log(inspect(print_results, { depth: Infinity, colors: true }));
110115
return writeFile('results.json', results);
111116
})
112117
.catch(err => console.error(err));

0 commit comments

Comments
 (0)