This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Porting/bench.pl: protect against data loss
authorJim Cromie <jim.cromie@gmail.com>
Sun, 10 Apr 2016 04:51:48 +0000 (22:51 -0600)
committerTony Cook <tony@develop-help.com>
Wed, 15 Jun 2016 00:35:52 +0000 (10:35 +1000)
commit955a736c2cd1ad6cd7868da807a056c4d540dfaa
treeb55412651144b41475766a51548ed88069822d97
parenta9eceb2d857bbc59b5154dab9e49408ea38b8148
Porting/bench.pl: protect against data loss

Due to %data storage using $perl_name (rather than $label),
blead silently loses data when running like so:

   perl Porting/bench.pl -- perl perl

patch complains about above, but allows following:

   perl Porting/bench.pl -- perl=FOO perl=BAR

With this 1/2 fix, we can further probe the underlying key probs,
evident in the results from above

   ...
   loop::for::lex_range4
   empty for loop with lexical var and 4 integer range

         BAR    BAR
      ------ ------
   Ir 100.00 100.00
   Dr 100.00 100.00
Porting/bench.pl