Skip to content

Commit

Permalink
Beef up any_equals and add a perl5 emulation using grep
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffrey Broadwell committed Jul 6, 2014
1 parent 445d939 commit a5d9765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions microbenchmarks.pl
Expand Up @@ -246,8 +246,8 @@
name => 'any_equals',
tags => [qw( junctions )],
scale => 1 << 7,
perl5 => undef,
perl6 => '1 == any(1 .. SCALE)',
perl5 => 'my $match = grep { 1 == $_ } 1 .. SCALE; my $fail = grep { 0 == $_ } 1 .. SCALE; say "$match $fail"',
perl6 => 'my $match = 1 == any(1 .. SCALE); my $fail = 0 == any(1 .. SCALE); say "{+?$match} {+?$fail}"',
nqp => undef,
},
{
Expand Down

0 comments on commit a5d9765

Please sign in to comment.