Jarkko Hietaniemi <[EMAIL PROTECTED]> wrote:
> My Parrot, Python, or Ruby-fu are not as strong as they should be
> (caveat applicator), but here goes nothing: I added some simple oo
> benchmarks for "getters" and "setters".
And here are recent results (with the Patch WRT classoffset I checked in
a second ago):
$ 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.
Parrot is built w -O3.
Perl, perl-th is 5.8.0 (the latter is multi-threaded)
Python 2.3.3
Ruby 1.8.0
leo