Skip to content

Example repository showing how parallelization via joblib can improve performance

License

Notifications You must be signed in to change notification settings

aekasitt/joblib-parallelization-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example repo for using Joblib

Use parallelization to speed up runtime

  • Example #1: factorial.py

    Without Parallelization

    python factorial.py
    $ Runtime: 12.571757078170776

    With Parallelization

    python factorial.py --parallel
    $ Runtime: 2.6366729736328125

    With Parallelization running two jobs

    python factorial.py --parallel --jobs 2
    $ Runtime: 6.87609601020813
  • Example #2: fashion.py

    Before running this example, you must first download the Kaggle Data and place on root folder as dress.csv

    Without Parallelization

    python fashion.py
    $ Runtime: 161.30089116096497

    With Parallelization

    python fashion.py --parallel
    $ Runtime: 20.59570002555847

    With Parallelization running two jobs

    python fashion.py --parallel --jobs 2
    $ Runtime: 79.21092510223389

About

Example repository showing how parallelization via joblib can improve performance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages