Skip to content

Commit

Permalink
clean up some output in the cli batches
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkrives committed Sep 25, 2018
1 parent 3279f6e commit 4eec5ee
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions modules/gob-cli/gob-benchmark/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,16 @@ async function realWorldBenchmark({files}) {

bench.run()

console.log(bench.stats)

let count = bench.stats.sample.length
console.log(
`ran ${
bench.hz
} evaluations over ${areaCount} student/area combinations`,
`ran ${count} evaluations over ${areaCount} student/area combinations`,
)

console.log(`evaluation took around ${ms(bench.stats.mean)} per area`)
console.log(
`evaluation took around ${ms(bench.stats.mean * 1000)} per iteration`,
)

let sorted = sortBy(bench.stats.sample)
let sorted = sortBy(bench.stats.sample.map(t => t * 1000))
console.log(`graph: ${sparkly(sorted, {min: 0})}`)

let min = Math.min(...sorted)
Expand Down

0 comments on commit 4eec5ee

Please sign in to comment.