[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] bench: Improve output.
From: |
Akim Demaille |
Subject: |
[PATCH] bench: Improve output. |
Date: |
Mon, 03 Nov 2008 21:01:02 -0000 |
* etc/bench.pl.in (bench_grammar): Tune the printf format.
---
ChangeLog | 5 +++++
etc/bench.pl.in | 8 +++++++-
2 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a52e053..a0e483e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-11-03 Akim Demaille <address@hidden>
+ bench: Improve output.
+ * etc/bench.pl.in (bench_grammar): Tune the printf format.
+
+2008-11-03 Akim Demaille <address@hidden>
+
bench: check impact of %debug on variants.
* etc/bench.pl.in (variant_grammar): Fix the computation of
$variant.
diff --git a/etc/bench.pl.in b/etc/bench.pl.in
index 481f3dd..eadfa4b 100755
--- a/etc/bench.pl.in
+++ b/etc/bench.pl.in
@@ -696,9 +696,15 @@ sub bench_grammar ($%)
# 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);
}
}
--
1.6.0.2.588.g3102
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] bench: Improve output.,
Akim Demaille <=