I am mining XMR with my cpu with more than one computer. And I've decided to check the results of my two different pcs' performances when I set their threads to different values. (You can see the options of the xmrig.exe in the link).
They both returned different performance rates(hash rates) depending on their number of threads.
Intel(R) Core(TM)i7-6700HQ CPU @ 2.60Ghz 2.60 Ghz
This one had the best performance with a thread number of 8 or 9 threads. They were both very close, around
Intel(R) Core(TM)i7-4700HQ CPU @ 2.40Ghz 2.40 Ghz
This one had the best performance with a thread number of 5 threads. It hash rate was
What is the reason behind this?
How can I learn how many threads I should set for different CPUs to get the best performance? I am sure people who are/will be running miners for long term might be wondering this too. How many threads for each different CPU? Also what are the factors that might affect the number of threads that we should be using?