NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Sounds about right to me (Score:1)
That's about the same kind of thing I saw when I tried it out in January.
What about using a scalpel instead of a hatchet? (Score:1)
Note that I upped the number of iterations to 1,000,000. Does Rakudo have inline C capability? For something that is numeric intensive, you might want a sharper tool.
Re: (Score:2)
The original poster is not asking for the best way to solve the problem of counting up to 100,000.
--
xoa
Finding the bottleneck... (Score:2)
For the most part, Rakudo development has been focused more on speed than features. We're also somewhat hampered by the fact that Parrot doesn't have many good profiling tools so that we can figure out where the bottlenecks are. Those are supposed to be in place for the next major release in July.
This post generated a lot of very fruitful discussion on #parrot today. Many people speculated about why the loop might be as slow as it is, and offered suggestions about improving Rakudo's code generation. Wha
Re: (Score:2)
For the most part, Rakudo development has been focused more on speed than features.
Oops, I obviously meant to write "...focused more on features than speed."
Pm
Re: (Score:1)
I actually hesitated to publish this at all, thinking that the problem was on solely on my part. I'm glad I knew better
Re:Finding the bottleneck... an update (Score:2)
As mentioned previously, I'm reporting back with our status. In the course of investigating this program, we discovered that postfix:<> was in fact very badly implemented, making it far more expensive than it needed to be. Fixing this ended up requiring quite a few internal changes to Rakudo, and I've discovered even more things we want to fix/avoid when running Rakudo in Parrot.
That said, here's where things stand now. I used the following code as a bench mark (basically same as original, cut the
Re: (Score:1)
$i++; # 7.5s
$i += 1; # 3.5s
$i = $i + 1; # 3.5s
In all cases it uses the expected ~130MB RAM, so at least there does not seem to be a significant leak specific to one of these expressions.
shootout benchmarks... (Score:2)
I'd really like to see this happen. There's already a shootout/ directory in the perl6-examples repository [1] -- I'll gladly give commitbits to anyone who wants to work on this or anything else in that r
Re: (Score:1)
Some of the benchmarks are inspired by bioinformatics and I might try having a go at these since I am familiar with these kind of problems (I guess this is a fairly typical stance for "non-programmer" programmers, it being far easier to solve tricky problems if they relate to other concepts you are familiar with, such as biology and DNA data in my case).
However, it will need to wait for a few months since I am hoping to finish my thesis in July
I'll definitely continue loo
Re: (Score:1)
Re: (Score:1)
I would be very interested in seeing regular outputs and graphs from such a thing, and would put some effort into writing code as tuits become available.
One thing to consider is having more than one way to do it -- i.e. including multiple versions of a benchmark in regular runs. This would show when things like "$var += 1" and "$var++" have performance gaps or convergence.