PlummersSoftwareLLC / Primes

Prime Number Projects in C#/C++/Python
https://plummerssoftwarellc.github.io/PrimeView/
2.43k stars 574 forks source link

Haskell Solution2 Maximum Threads #924

Closed GordonBGood closed 1 year ago

GordonBGood commented 1 year ago

Description

When the maximum available (logical) threads is less than four, use this number of threads rather than four; this gives a better benchmark score for CPU's such as some Intel Celeron's with only two cores (and no Hyper-Threading - HT), although it still wouldn't quite be fair as to passes per thread for some CPU's with only two cores but with HT or Simultaneous Multi Threading (ofwhich none are currently tested)...

Contributing requirements