You're right. I wish JET would work on Linux. Equivalently, I wish that the GNU g++ compiler made C++ code as fast as JAVA w/ JET compilation.
The point remains the same though, that JAVA code compiled to the native platform I'm using at the moment (WindowsXP) is faster than C++/FORTRAN by a factor of 2 over GNU GCC.
Reccomend what you like, but those are the numbers.
(btw, I'm a grad student with no affiliation to any vendor)
Times were computed by placing System.CurrentTimemillis()/time() before and after the program loop and taking the difference for java/cpp respectively
From the results, the fastest solution I have at my disposal is java + JET. I need to get the Intel compilers, however. If relative speed of Intel vs. GNU holds, C++ and Java/JET will be about the same speed. I really get tired of "some language here" is slow/fast assertions. Whatever language you code in, you need to be efficient and have a good compiler. As always, there is more than one way to do things, and the most important requirement is to get the job done.
You're right. I wish JET would work on Linux. Equivalently, I wish that the GNU g++ compiler made C++ code as fast as JAVA w/ JET compilation.
The point remains the same though, that JAVA code compiled to the native platform I'm using at the moment (WindowsXP) is faster than C++/FORTRAN by a factor of 2 over GNU GCC.
Reccomend what you like, but those are the numbers.
(btw, I'm a grad student with no affiliation to any vendor)
System: 1.0 Ghz P3, WinXP
l t compilation: jc almabench.class
Solution 1, Java, JET Compiler 3.0
http://www.excelsior-usa.com/jet.html
defau
Time: 40.1 sec
Solution 2, C++, GNU g++ 3.2 under cygwin
CPPFLAGS = -march=pentium3, -mcpu=cpentium3, -O3, -msse, -mmmx
Time: 82.0 sec
Solution 3, JAVA + JDK1.4.1_01 javac
javac -g:none almabench.java
Time: 114.6 sec
Times were computed by placing
System.CurrentTimemillis()/time() before and after the program loop and taking the difference for java/cpp respectively
From the results, the fastest solution I have at my disposal is java + JET. I need to get the Intel compilers, however. If relative speed of Intel vs. GNU holds, C++ and Java/JET will be about the same speed. I really get tired of "some language here" is slow/fast assertions. Whatever language you code in, you need to be efficient and have a good compiler. As always, there is more than one way to do things, and the most important requirement is to get the job done.