in reply to Perl verus Java

A 6x performance gain when going from Perl to Java sounds awfully suspicious. There has to be more to the story.

Is there any chance that your colleague's site was a vanilla CGI application rather than a mod_perl or FastCGI app? (I'm assuming this is a web-based app) If so, those numbers might quite reasonable, but the joke's still on them.

Were there optimizations that occurred to the database(s) in the meantime? Like new/improved indexes or stored procedures? Talented DBA work can offer stunning performance increases.

I'll be the first to admit (possibly wrongly) that Java has a performance edge over Perl, when both are given equal luvin' and skill, but NOT 6x, probably not even quite 2x. And I say this a someone who is experienced w/both languages. Perl is the apple of my eye because it takes ALOT less effort to write and maintain.

Replies are listed 'Best First'.
Re: Re: Perl verus Java
by rje (Deacon) on Nov 14, 2003 at 21:09 UTC
    I would be surprised to learn that Java has any inherent performance edge over Perl; my assumption was that Perl is, in some undefinable way, "closer" to C than Java, and that C is the performance standard by which most non-assembly languages are compared...