Monday, August 23, 2004

Java vs Perl

Java Regex Wrangling "So then I ran it again without the output, just counting the tokens, and yowie zowie, Perl was at 8 minutes 47 seconds, Java back at 3 minutes 4 seconds. So I re-ran on a nearby Debian box, on the theory that the OS X versions of Java and Perl might not be representative of their kind. There are all sorts of variations around I/O and so on, but my finding is that for this problem, the Java 1.4.2 regex processing is somewhere around twice as fast as Perl 5.8.1. Frankly, I’m astounded."

I wrote up a JavaOne presentation on this in 2001. While I couldn't go and it wasn't presented this is pretty much what I found too.
Post a Comment