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:
i7 7700k @ 4.2 GHz (4 Cores, 8 threads)
16 GB RAM @ 3000MHz. (DDR4)
Timings: https://gist.github.com/JosephBywater/f79f5e8277d148c26804c85c2c6a399a
MacBook Pro Early 2015
Intel i5 (unknown model, possibly i5 5257U) @ 2.7 GHz
8 GB RAM @ 1867 MHz. (DDR3)
Timings: https://gist.github.com/oliverdunk/ad3dd134b653c43c9928
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