On Wed Mar 11 20:16:11 2015, Mouq wrote:
> On Fri Mar 29 06:37:47 2013, thunderg...@comcast.net wrote:
> > my @j := (0 .. *).list;
> > say @j.first: {$^_ > 10};
> >
> > returns 11 in .01 seconds on my system
> >
> > my @l := gather map {take $_ }, 0 .. *;
> > say @l.first: {$^_ > 10};
> >
> > returns 11 in 63.97 seconds on my system
> 
> FWIW, on my system with perl6 version "2015.02-275-g3da1bbd built on
> MoarVM version 2015.02-49-gb5b5435", I get about 8 seconds for:
> 
> perl6 -e'my @l := gather map {take $_ }, 0 .. *; say @l.first: {$_ >
> 100000};'
> 
> And about 1 second for:
> 
> perl6 -e'my @j := (0 .. *).list; say @j.first: {$_ > 100000}'
> 
> I'm thinking this is less outrageous. This should probably be added to
> perl6-bench or something to ensure we don't regress. Once we have some
> kind of test in place, I think this ticket can be resolved.
> 
> ~Mouq

on my OSX box on nom: real      0m4.393s, and real      0m0.532s

on glr, the first is now a syntax error:
second is slower with: real     0m1.643s
-- 
Will "Coke" Coleda

Reply via email to