Slashdot Mirror


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.""

9 of 1,270 comments (clear)

  1. Netcraft Confirms: by BandwidthHog · · Score: 3, Funny

    Fact: C++ is dying....

    Oh hell, I don't have the heart. Nevermind.

    --

    Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?
  2. Anyone got a match? by nebaz · · Score: 5, Funny

    Here's some kindling...

    vi is better than emacs
    bsd is better than linux
    gnome is better than kde
    .
    .
    .
    anything else?

    oh yeah...
    my dad can beat up your dad.
    And you smell funny.

    --
    Rhymes that keep their secrets will unfold behind the clouds.There upon the rainbow is the answer to a neverending story
  3. Re:my arse by kaffiene · · Score: 3, Funny

    "My arse" is a good name for this post since that's obviously where your head is stuck - much like the rest of the /. morons with their anti-java-no-matter-what stance.

    I used to be a C hacker and a laughed at Java when it came out because of it's poor performance. Times have changed, but the language bigots haven't.

  4. Re:Sorry, no. by Ianoo · · Score: 4, Funny

    I think you're missing the point. I bet 19 seconds of that execution time was the start-up and shutdown of the virtual machine. As the program gets bigger and bigger, this becomes less and less significant.

  5. Re:Caught up with the speed, but still the ugliest by kaffiene · · Score: 3, Funny

    For years it was "Java is too slow" Now it's too ugly??

    Sheesh.

    I'm sure one of Swing (with it's several different look and feels and skinnable interface) or SWT or AWT will fit the bill.

  6. One more... by Rufus88 · · Score: 5, Funny


    anything else?

    Yeah, Kuro5hin is better than Slashdot.

  7. Re:Sorry, no. by phasm42 · · Score: 4, Funny

    I just wrote two programs to count to 1 billion. The one written in C took 2.4 seconds, the one written in assembly took 0.85 seconds. Wow, assembly is so much faster. My in-depth analysis of these two languages has shown once and for all that all us high-level language suckers need to get back to coding in assembly and quit this HLL foolishness.

    --
    "No one likes working in a hamster wheel, and your shop smells of cedar shavings from here." - TaleSpinner
  8. Re:Nice to hear... by drew · · Score: 3, Funny

    I think about the PHP/PostgreSQL applications I write today and shudder when I imagine what how difficult it would be to have to develop web applications in Java...

    --
    If I don't put anything here, will anyone recognize me anymore?
  9. Obligatory Bash Quote... by MP3Chuck · · Score: 3, Funny

    http://bash.org/?338364 #338364 +(1308)- [X] Saying that Java is nice because it works on all OS's is like saying that anal sex is nice because it works on all genders