GCJ slower than JDK?

Fernando Lozano fernando@lozano.eti.br
Mon Jan 28 15:18:00 GMT 2002


Hi there!
I wrote a small test program which tries to find wether a list of files 
contains two or more files with the same contents. It first groups all 
files with the same size, then it gets a checksum for all files with the 
same size and if the checksum matches they are grouped as real duplicates.
Testing on a directory with about 3.000 jpg files and getting about 76 
duplicates, I found the program is three times slower when compiled with 
gcj -O2 than when compiled and executed bu a Java SDK.
Is this to be expected? I guessed the gcj binaries would be much faster 
than the Java class files... Is this a bug? It may be my fault? Any hint 
will be wellcome...
(and I was planning to use this app to tell my students to use gcj -- 
free software -- intead of a Java SDK -- not free software, although 
freeware)
Using gcj 2.96 and IBM Java SDK 1.3.0 under Red Hat Linux 7.1
[]s, Fernando Lozano


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /