* etc/bench.pl.in (bench_grammar): Tune the printf format.
+2008-11-03 Akim Demaille <demaille@gostai.com>
+
+ bench: Improve output.
+ * etc/bench.pl.in (bench_grammar): Tune the printf format.
+
2008-11-03 Akim Demaille <demaille@gostai.com>
bench: check impact of %debug on variants.
# Display the sizes.
print "Sizes:\n";
+ my $width = 10;
for my $bench (keys %size)
{
- printf "%10s: %10dkB\n", $bench, int ($size{$bench} / 1024);
+ $width = length $bench
+ if $width < length $bench;
+ }
+ for my $bench (keys %size)
+ {
+ printf "%${width}s: %5dkB\n", $bench, int ($size{$bench} / 1024);
}
}