Streamtokenizer

Andrew Haley aph@redhat.com
Thu May 8 09:22:00 GMT 2008


OneGuy wrote:
> Hi,
> 
> I was testing a 14 MB file with this benchmark,
> 
> http://shootout.alioth.debian.org/gp4/benchmark.php?test=sumcol&lang=java&id=2
> 
> and it turns out that GCJ is 7 times slower than Java6. Can this be
> called a bug in GCJ 's Streamtokenizer?

That may be so.  On the other hand, perhaps Sun's JIT has discovered
a smart optimization that isn't visible to gcc.  Profililng the 
program may show what is happenining.

Andrew.



More information about the Java mailing list