From e2cb01db880910bcec403b243be3df3101ab5aaf Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 22 May 2025 10:00:45 +0300 Subject: [PATCH] x.benchmark: align the output of BenchmarkResult.print/0 --- vlib/x/benchmark/benchmark.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/x/benchmark/benchmark.v b/vlib/x/benchmark/benchmark.v index 2d334b6c04..65c4d62989 100644 --- a/vlib/x/benchmark/benchmark.v +++ b/vlib/x/benchmark/benchmark.v @@ -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}') }