This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
GCJ slower than JDK?
- From: Fernando Lozano <fernando at lozano dot eti dot br>
- To: java at gcc dot gnu dot org
- Date: Mon, 28 Jan 2002 21:23:19 -0200
- Subject: GCJ slower than JDK?
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