Java application running significantly faster on Mac OS than Windows

1

I was told to post this here, from Stack Overflow.

I am trying to run a Java program which finds Poly divisible numbers. However, I have found that it is significantly slower on my Windows computer in comparison to the speed it runs at on a MacBook Pro.

Do you know any reason why this may be and how this could be fixed?

Windows Specs:

MacBook Pro Early 2015

Code https://github.com/oliverdunk/Polydivisbles

Joseph

Posted 2017-07-24T22:01:13.083

Reputation: 11

How much memory have you allowed the Java VM – Ramhound – 2017-07-24T23:09:38.267

I have allowed 8192m(-Xmx 8192m) – Joseph – 2017-07-24T23:15:12.237

1Same version of Java on both machines? Same amount of memory assigned to the Java VM? – Ramhound – 2017-07-24T23:30:28.060

I assume they have less, however I just realised my target version was 1.7, not 1.8. It didn't make a difference with timings though. – Joseph – 2017-07-24T23:38:35.963

How many threads are being used on each machine? – Ramhound – 2017-07-24T23:55:06.530

I don't know, I assume theyre at default on each. In task manager each thread goes to 100% on my windows computer – Joseph – 2017-07-24T23:56:29.390

I cannot answer your question if you cannot tell me how many threads your Java application is using on each machine – Ramhound – 2017-07-24T23:59:23.097

How would I find their information? – Joseph – 2017-07-25T00:00:02.280

On the Windows machine, are you running the program against 32-bit Java on 64-bit Windows? – misha256 – 2017-07-26T02:49:35.010

Possibly, it was in "Program Files", not "Program Files (x86)". – Joseph – 2017-07-26T08:16:11.013

No answers