Skip to content

Commit

Permalink
Add reduce_int_comb_range_1e4 test, inspired by bench-scripts++
Browse files Browse the repository at this point in the history
  • Loading branch information
japhb committed Feb 2, 2013
1 parent 575c02c commit 55f801c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions microbenchmarks.pl
Expand Up @@ -151,6 +151,12 @@
perl6 => '[+] 1 .. 100000',
nqp => undef,
},
{
name => 'reduce_int_comb_range_1e4',

This comment has been minimized.

Copy link
@kboga

kboga Feb 2, 2013

should for p5 s/1000/10000/ perhaps?

This comment has been minimized.

Copy link
@japhb

japhb via email Feb 2, 2013

Author Collaborator
perl5 => 'use List::Util "reduce"; reduce { $a + $b } map { 0+$_ } map { split "" } 1 .. 1000',
perl6 => '[+] (1 .. 10000).comb>>.Int',
nqp => undef,
},
{
name => 'any_equals_1e3',
perl5 => undef,
Expand Down

0 comments on commit 55f801c

Please sign in to comment.