mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 12:53:03 +00:00
bench: Improve output.
* etc/bench.pl.in (bench_grammar): Tune the printf format.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2008-11-03 Akim Demaille <demaille@gostai.com>
|
||||||
|
|
||||||
bench: check impact of %debug on variants.
|
bench: check impact of %debug on variants.
|
||||||
|
|||||||
@@ -696,9 +696,15 @@ sub bench_grammar ($%)
|
|||||||
|
|
||||||
# Display the sizes.
|
# Display the sizes.
|
||||||
print "Sizes:\n";
|
print "Sizes:\n";
|
||||||
|
my $width = 10;
|
||||||
for my $bench (keys %size)
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user