At 10:30 PM 9/7/2001 +0300, raptor wrote:
>I see that it was mentioned that Perl5 is fast than Java, Python etc... and
>was wondering is there any comparison how-much, if ? and if why ? and if we
>know the reason can we exploit it further ... and similar...
>And does really Perl6 will be faster..... how much u expect ?
This stuff is all very benchmark-specific. Doing low-level things, like
integer math operations, Java's faster. Doing higher-level stuff, like
regexes or things with hash variables, perl's faster. The more time a perl
program spends inside its "fat" opcodes, the more likely perl is to win
over java/python/tcl/ruby/etc. Competent C programmers can beat perl every
time. (Actually *finding* a competent C programmer is left as an exercise
for the reader... :)
There are a variety of benchmarks scattered around the 'net. Google or
Northern Light should find them for you. How valid they are is something
else entirely. There are benchmarks in a variety of books, but I don't have
cites handy. Tom Christiansen did for a while, but I think they've fallen
off his website, and they were getting kind of stale anyway.
As for perl 6 vs perl 5, that's reasonably easy. We benchmark things on
perl 5.004_04 and 6.x, and see who wins. If 6 doesn't, we find out why and
speed it up. :)
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk