This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
bench.pl: display large values as 'Inf'
authorDavid Mitchell <davem@iabyn.com>
Sat, 21 Oct 2017 14:19:28 +0000 (15:19 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 23 Oct 2017 10:52:02 +0000 (11:52 +0100)
commit8924d3981a915e9170e1e99e3370f2a47d9a371a
tree448ea03a7e0f734785c53c7d1bfd15c20788c5f0
parent31952d396e2249c3df97926bffc386f27f3e4aa3
bench.pl: display large values as 'Inf'

When calculating percentages, you might end up with something like

    1 / 0.0000001

which really means that the new perl had one cache miss (say) and the old
perl had zero misses, but due to measurement noise, the 0 wasn't measured
as quite 0.

So if the value is more than a million, display as 'Inf' instead.
Porting/bench.pl