Slashdot Mirror


Java Performance On Ubuntu Vs. Windows Vista

Henckle writes "Phoronix did a comparison of the Java performance between Ubuntu and Windows Vista. They tested both Java and OpenJDK on Ubuntu 8.10 and Java on Windows Vista Premium SP1, all with stock configurations. To no-one's surprise, Ubuntu was faster in a majority of the tests. The two OSs were similar in ray-tracing, and Vista was faster at Java OpenGL due to shortcomings with the Linux graphics driver."

6 of 258 comments (clear)

  1. Ray tracing in Java by olddotter · · Score: 3, Interesting

    Have computers or JIT compilers gotten fast enough that people actually do ray tracing in Java?

    1. Re:Ray tracing in Java by Yetihehe · · Score: 5, Interesting

      Yes. Sunflow is one example. I did my own tests, java vs c++ (almoste the same code) and java was only about 1.3 times slower.

      --
      Extreme Programming - Redundant Array of Inexpensive Developers
    2. Re:Ray tracing in Java by shutdown+-p+now · · Score: 3, Interesting

      Compared to plain C/C++ code (no non-standard compiler intrinsics etc), Java has been fast enough for a long time now. Think about it: it's all just math, and JIT (which may itself be slow - it doesn't matter!) generates pretty much the same native code as a C compiler would. g++ can still do some trickier optimizations, which may account for the odd 5-10% of difference; but hardly more than that. .NET can actually fare even better, because it supports raw unsafe code and data pointers with arithmetic, dynamic allocation of stack memory (alloca), and unions - this essentially covers all optimization tricks available in ANSI C.

  2. Not surprising by greg_barton · · Score: 3, Interesting

    I've been using scimark for years to evaluate system performance with java.

    Try it yourself.

    Linux has outperformed windows (on average) for years, and OSX as well until recently. (java 1.4 performance on OSX was dismal)

  3. Re:that's odd by Dr.Merkwurdigeliebe · · Score: 3, Interesting

    If MS put it in a VM, then it's an MS issue ...

    --
    I'm a student. I write iPhone apps.
  4. Re:I was surprised by LWATCDR · · Score: 4, Interesting

    You shouldn't be.
    Most java development these days takes place on the server side. Linux is has a large precentage of the server market. Then you must know that Sun is a Unix company. They push Solaris and java on Solaris. Solaris is a lot more like Linux than Windows. The the final piece is that in the Windows server market Java shares space with .net.
    So as far as the amount of attention I would say that Solaris/Linux/Unix gets just as much attention as Windows does.

    --
    See my blog http://ilovecookes.blogspot.com/ for light hearted technical information.