This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Porting/bench.pl: add --autolabel option
authorDavid Mitchell <davem@iabyn.com>
Tue, 20 Jun 2017 11:00:30 +0000 (12:00 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 21 Jun 2017 10:10:31 +0000 (11:10 +0100)
commit1e072f25de347bb72f53cad04ce5045637fb7aba
tree38bdf1d2411c334d16dea3d2afdfe809fecee1c1
parente89a8e106c308b4c2fbaa6a213a6753aeeae6c0e
Porting/bench.pl: add --autolabel option

This automatically creates a unique label per perl interpreter.
For example

    Porting/bench.pl --autolabel \
        ~/bin/perl-5.20.0 ~/bin/perl-5.22.0 ~/bin/perl-5.24.0

is equivalent to

    Porting/bench.pl \
        ~/bin/perl-5.20.0=5.20.0 ~/bin/perl-5.22.0=5.22.0 \
        ~/bin/perl-5.24.0=5.24.0

As part of adding a test, this commit also slightly fixes up the test code
which generates a regex from an NNN.NN part of a template.
Porting/bench.pl
t/porting/bench.t