Java Faster Than C++?
jg21 writes "The Java platform has a stigma of being a poor performer, but these new performance benchmark tests suggest otherwise. CS major Keith Lea took time out from his studies at student at Rensselaer Polytechnic Institute in upstate New York's Tech Valley to take the benchmark code for C++ and Java from Doug Bagley's now outdated (Fall 2001) "Great Computer Language Shootout" and run the tests himself. His conclusions include 'no one should ever run the client JVM when given the choice,' and 'Java is significantly faster than optimized C++ in many cases.' Very enterprising performance benchmarking work. Lea is planning next on updating the benchmarks with VC++ compiler on Windows, with JDK 1.5 beta, and might also test with Intel C++ Compiler. This is all great - the more people who know about present-day Java performance, the better.""
Real world Java applications show that Java is far slower than C/C++.
Keep in mind very long load times for Java, as well as a general lack of responsiveness as it does garbage collection on slower machines.
When the following two pieces of code are written in Java, I'll take it seriously:
1) a java compiler for java (funny that the java binaries are written in C++ and compiled with a compiler written in C++)
2) id's next game engine
https://www.accountkiller.com/removal-requested
"The Java is Faster than C++ and C++ Sucks Unbiased Benchmark"
Uh, okay... Sure, unbiased you say...
Yes, I need to read it to find out how Java was used, how C++ was used, what compilers or interpreters or runtimes were involved, and what libraries and the like, but until one can write an OS kernel in it, Java is still not what I would personally look to for the future of software development.
Do not look into laser with remaining eye.
Java might have finally caught up with the speed ...
;o) All you programmers that say you can do anything in Java/C#/etc are terrible. You have no respect for code. Learn assembly and then we'll talk.
I completely disagree, Java is still very slow (yes I have tried the newer versions of Java) and no, they are not fast. Yes compared to un-optimized C++ code which is also crap it might be faster. So what! My 468/25 is just slightly faster than my 486/33 but who cares both of them are no good. You don't see me posting that my 486/33 is whooping the 486/25 does you? Now if you want to do a decent comparison try even comparing Java with just C, oh wait its been done and Java cries when it is compared to C. Which is relatively low level. (that is why the Linux kernel uses it
My $0.02
Compared to similar applications written in real languages (meaning any language that is not java) they are crash prone, give idiotic debug statements, suck up memory and easily get the "too many open files" error on linux.
I guess this is like "Windows nowadays is very stable" bit. You can show all the benchmarks and tests but I will let my daily experience be the judge and use reports such as this as the toilet paper it is.
To be fair, freenet does work on linux and windows as does Azureus. This is for me the only selling point.
Perhaps java is faster then C++, it is hard for me too judge. But until Java developers start writing better programs, Sun makes sure Java is really cross platform, and games (the ultimated performance applications) start being written in java I will file this with all the other reports on how java will take over the world and is the best, fastest, easiest.
MMO Quests are like orgasms:
You may solo them, I prefer them in a group.
Haha, I sure hope you aren't a programmer by profession. You sir, are a dumbass.
ever discovered with Java: 1 (still waiting on that next one, I guess it's garbage-collecting) Can we build a grid-based garbage collector?
Am I the only one who thinks michael uses Slashdot to post stupid crap that just supports his own uninformed bias?
--Matthew
Honestly, the guy has no clue what he is doing, the numbers are completely meaningless. I mean here is my review with just as much scientific integrity:
:). And anyway, commonly used code is converted to native code if they are called often enough so other parts are mute aswell.
Test Results
------------
Java: 30 GigaQuads
C++: 3000000000000000000 GigaQuads
Sumary
-------
Java: sux balls
C++: is god
I digress, back to reality now.
None of the tests used any form of GUI testing, this is what the end user will mosty be dealing with so here it is, Swing is crap, its slow, ugly, and just a bad hack job. Eclips (the main opensource IDE) uses SWT instead of Swing to avoid these problems, for the uniformed, SWT simply does C calls to the OS to display the os's GUI library (this of course is at the expense of cross platform compatability).
When it comes down to it a JIT compilere has the advantage of being able to optimize for memory size and what not, but then again JET compilers can spend all the time they want getting the code tweaked just right so its neither here nor there, even though experience has shown that the later tends to be faster as the system specs are generaly too similar nowdays (Umm try running java on a 16Mb machine
In summary, JIT will always be a bit slowere because of the initial overheard, as for Swing, well thanks Sun you can have that pile of steaming shit back.
GPLv2: I want my rights, I want my phone call! DRM: What use is a phone call, if you are unable to speak?
Of course not. They just saw a link and say, "Ooooh, this guy is helpful"... +1 Informative! Of course, neither of us should really bother mentioning this, since it's well known that slashdotheads never read the fucking article, so why should they be expected to follow a link? Never think too highly of slashdotters, and you'll never be disappointed.
Funny how nobody can say anything negative about anything on slashdot without being labelled a troll. Java has crashed my computer for the past several years, and now it's crashing my cellphone. Either there are a lot of sucky Java Coders, or the language itself sucks.
"Jeremy, you need to get to an internet cafe and cut and paste some appropriate sentiments about me from the world wide