Results 1 to 10 of 10

Thread: What would be the speed different for java calculation program in windows vs linux?

  1. #1
    Join Date
    Nov 2008
    Beans
    136

    What would be the speed different for java calculation program in windows vs linux?

    I know there may be no perfect objective answer for this, but did someone create benchmark like this? Or around how much different should I expect? The computer hardware is pretty good in these years, then there is not much different now? I main concern is a program that mainly purely a lot of calculation in a lot of data in array with no graphic except a very basic swing gui as control panel. If we have the same hardware and same java code for the calculation program, what difference should that be?

  2. #2

    Re: What would be the speed different for java calculation program in windows vs linu

    Try this if you have a dual boot:
    http://forums.fedoraforum.org/showthread.php?t=105244

  3. #3

    Re: What would be the speed different for java calculation program in windows vs linu

    Also, keep in mind that there are different compilers. Linux, if a manual install of Java, may include the 64-bit version vs. Windows which is typically default with a 32-bit version.

  4. #4
    Join Date
    Nov 2008
    Beans
    136

    Re: What would be the speed different for java calculation program in windows vs linu

    I look at the benchmark measure code and I guess running a for loop like that may not have a very objective result, especially it keep print out stuff which may let the graphic power of java in windows/linux affects the speed a lot.

  5. #5
    Join Date
    Nov 2008
    Beans
    136

    Re: What would be the speed different for java calculation program in windows vs linu

    it is a very micro coding, not represent speed in general.

  6. #6
    Join Date
    Oct 2005
    Location
    Al Ain
    Beans
    8,616

    Re: What would be the speed different for java calculation program in windows vs linu

    Hmm, well, depends on whether you include the time required to scan and remove viruses and other malware and reboot three times, before you can start the test...

  7. #7
    Join Date
    Nov 2008
    Beans
    136

    Re: What would be the speed different for java calculation program in windows vs linu

    Quote Originally Posted by HermanAB View Post
    Hmm, well, depends on whether you include the time required to scan and remove viruses and other malware and reboot three times, before you can start the test...
    linux has this advantage since normally we don't even have anti virus.

  8. #8
    Join Date
    Dec 2005
    Location
    Western Australia
    Beans
    11,480
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: What would be the speed different for java calculation program in windows vs linu

    Speed of execution is probably very similar, when comparing 32-bit operating systems. Linux does keep more RAM available for programs, though.

  9. #9
    Join Date
    Aug 2011
    Location
    47°9′S 126°43W
    Beans
    2,165
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: What would be the speed different for java calculation program in windows vs linu

    Quote Originally Posted by dixcuxx View Post
    I know there may be no perfect objective answer for this, but did someone create benchmark like this? Or around how much different should I expect? The computer hardware is pretty good in these years, then there is not much different now? I main concern is a program that mainly purely a lot of calculation in a lot of data in array with no graphic except a very basic swing gui as control panel. If we have the same hardware and same java code for the calculation program, what difference should that be?
    As long it's pure computation (no system calls) and you are using the same JVM (ie, Oracle/Sun, IBM, OpenJDK) of identical bitness... zilch. You would get more difference using different JVMs on the same hardware and operating system (and likely find that each is a bit better that the others for at least one kind of computation). That would even apply to running your Java in a Windows virtual box on Linux and vice-versa.

    Linux starts looking better when you are doing a lot of I/O.

  10. #10
    Join Date
    Nov 2008
    Beans
    136

    Re: What would be the speed different for java calculation program in windows vs linu

    Quote Originally Posted by ofnuts View Post
    As long it's pure computation (no system calls) and you are using the same JVM (ie, Oracle/Sun, IBM, OpenJDK) of identical bitness... zilch. You would get more difference using different JVMs on the same hardware and operating system (and likely find that each is a bit better that the others for at least one kind of computation). That would even apply to running your Java in a Windows virtual box on Linux and vice-versa.

    Linux starts looking better when you are doing a lot of I/O.
    I find out this link:
    http://dior.ics.muni.cz/~makub/java/speed.html
    the conclusion should be with the same official JVM version, the performance in Linux and Windows are extremely similar

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •