jliszka / probability-monad

Apache License 2.0
263 stars 38 forks source link

Speed up computation with parallelism #8

Closed totekp closed 9 years ago

totekp commented 9 years ago

Running certain examples are now faster by taking advantage of more cpu instead of previously maxing out at 100%.

// Expected # flips to get 8 heads in a row
Examples.expectedFlips(8)
511.6637
16409 milliseconds

// After using parallel collections
509.33989999999983
2927 milliseconds
jliszka commented 9 years ago

Awesome! Thank you!