Sean O'Rourke <[EMAIL PROTECTED]> wrote:

> Leopold Toetsch <[EMAIL PROTECTED]> writes:

>>   get_pmc_const P0, "_fib"
>>   invokecc

> This isn't really kosher -- since "fib" might have been redefined in
> the current lexical environment, we have to (at least conceptually)
> find its lexical.

Baically yes. But when '_fib' is redefined the constant table entry
holding the Sub PMC should also be updated, theoretically.

Anyway, here are the results of the fib benchmark in Parrot CVS:

$ cat bench
perl tools/dev/parrotbench.pl -c=parrotbench.conf -b=^oo "$@"

$ ./bench -b=^fib
Numbers are relative to the first one. (lower is better)
        p-j-Oc  p-C-Oc  perl-th perl    python  ruby
fib     100%    126%    324%    294%    167%    252%

perl = 5.8.0, perl-th = threaded, python = 2.3.3, ruby = 1.8

Parrot compiled --optimized, arch=i386/linux.

leo

Reply via email to