Skip to content

Basic experiment to benchmark ray against python multiprocesising

License

Notifications You must be signed in to change notification settings

lorenzocerrone/ray-vs-multiprocessing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ray-vs-multiprocessing

Basic experiment to benchmark ray against python multiprocessing

install environment

conda create -n ray-vs-mp -c conda-forge numpy matplotlib tqdm scikit-image memory_profiler
pip install ray[all] 

run with profiler

Total memory

mprof run --include-children main.py 
mprof plot

Process by process memory

mprof run --multiprocessing main.py 
mprof plot

run on cluster

  1. on the head
ray start --head --port=6379
  1. on the children
copy out from ray start in the head
  1. on the code
ray.init(address="auto")
  1. run normally

About

Basic experiment to benchmark ray against python multiprocesising

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages