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.
There was another question I found here: Java code running faster on Mac with slower processor than on my Windows computer? with a similar problem, however it has no conclusive answer to why it is slower.
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