Leopold Toetsch wrote:

> $ perl tools/dev/parrotbench.pl -c=parrotbench.conf -b='^oo'
> Numbers are relative to the first one. (lower is better)
>         parrotj parrot  parrotC perl-th perl    python  ruby
> oo1     100%    110%    107%    151%    128%    81%     110%
> oo2     100%    109%    106%    154%    128%    76%     111%
> oo3     100%    135%    111%    244%    229%    294%    335%
> oo4     100%    144%    118%    119%    109%    149%    255%
> oo5     99%     133%    120%    198%    175%    47%     54%
> oo6     100%    137%    120%    140%    120%    37%     64%
> oofib   100%    144%    132%    240%    212%    140%    136%
> 
> oo[56] for ruby and python aren't really the same as perl/parrot - they
> don't use accessor functions.

Well... the oo6.rb does define the setter methods.

But in any case, they are "plain vanilla" getter/setter code for their
respective languages, and somehow they manage to be faster than Parrot.
 (Note that the oo[56].pl could be written to be a bit faster by
eliminating the lexicals and the @_ shifting, but that's beside the
point of trying to speed up Parrot.)

That being said, people more conversant than me in Python/Ruby
(or Parrot) are welcome to carefully compare the scripts to verify that
the scripts really do implement the same tasks.

-- 
Jarkko Hietaniemi <[EMAIL PROTECTED]> http://www.iki.fi/jhi/ "There is this special
biologist word we use for 'stable'.  It is 'dead'." -- Jack Cohen

Reply via email to