mirror of
https://github.com/vlang/v.git
synced 2025-08-03 09:47:15 -04:00
x.benchmark: align the output of BenchmarkResult.print/0
This commit is contained in:
parent
90445259d3
commit
e2cb01db88
@ -250,5 +250,5 @@ fn (r BenchmarkResult) alloced_bytes_per_op() i64 {
|
||||
|
||||
// print - all measurements
|
||||
fn (r BenchmarkResult) print() {
|
||||
println('Iterations: ${r.n}\t\tTotal Duration: ${r.t}\tns/op: ${r.ns_per_op()}\tB/op: ${r.alloced_bytes_per_op()}\tallocs/op: ${r.allocs_per_op()}')
|
||||
println('Iterations: ${r.n:10}\t\tTotal Duration: ${r.t:10}\tns/op: ${r.ns_per_op():10}\tB/op: ${r.alloced_bytes_per_op():6}\tallocs/op: ${r.allocs_per_op():6}')
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user