knbarton / ners570-finalproject

Ners 570 Final Project
1 stars 1 forks source link

Parallelize python script #21

Closed littlewatkins closed 3 years ago

littlewatkins commented 3 years ago

Pull Request

Addresses #20

The code works and the run time is cut in half (from 110 seconds to 50-55s on my laptop). Just may make a change to how many processors get used before merging.

littlewatkins commented 3 years ago

On TravisCI, it took less time to run the parallel version but only by 10 seconds

littlewatkins commented 3 years ago

It's interesting because the Travis CI build takes the parallel script with .75 of the physical processors the same time as the serial script. Leads me to believe that Travis CI doesn't use many processors on it's virtual environment. For my laptop, its takes half the time.