Parallel brute force: Difference between revisions
Content added Content deleted
Line 752: | Line 752: | ||
</ul> |
</ul> |
||
<br/> |
<br/> |
||
Compile with "-O2 -threaded -rtsopts". Run with "+RTS -N<number of cores>" |
Compile with "-O2 -threaded -rtsopts". Run with "+RTS -N<number of cores>"<br/> |
||
7.391s elapsed on a 2.5 GHz Dual-Core Intel Core i7 Macbook Pro. |
|||
<lang haskell>import Control.Concurrent (getNumCapabilities) |
<lang haskell>import Control.Concurrent (getNumCapabilities) |
||
import Crypto.Hash (hashWith, SHA256 (..), Digest) |
import Crypto.Hash (hashWith, SHA256 (..), Digest) |