This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
bench.pl: allow variable-width data columns
authorDavid Mitchell <davem@iabyn.com>
Sat, 21 Oct 2017 14:13:35 +0000 (15:13 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 23 Oct 2017 10:52:02 +0000 (11:52 +0100)
commit31952d396e2249c3df97926bffc386f27f3e4aa3
treefb4f64a6313603b32a3e2431c8656de48c9a529a
parent8f25a3c4b0edf60bca3a3796ab64d80c7344fd29
bench.pl: allow variable-width data columns

Rather than using a fixed(ish) format width like "%6.2f" (which was only
increased based on the width of the label heading each column), calculate
separately for each column, the minimum width based on both the label and
all the data to be displayed in that column.
Porting/bench.pl
t/porting/bench.t