Add Docker Support for ASV (#2184)

* added new instructions and script

* initialize ray only once

* use ray-project/asv master
This commit is contained in:
Richard Liaw
2018-06-05 15:55:35 -07:00
committed by Philipp Moritz
parent a139a5df8c
commit 13d4e0db95
3 changed files with 22 additions and 2 deletions
+4 -1
View File
@@ -3,5 +3,8 @@ Running the benchmarks
You can run the benchmark suite by doing the following:
1. Install https://github.com/airspeed-velocity/asv: ``pip install asv``
1. Install https://github.com/ray-project/asv: ``cd asv; pip install -e .``
2. Run ``asv dev`` in this directory.
To run ASV inside docker, you can use the following command:
`docker run --rm --shm-size=10G --memory=10G $DOCKER_SHA bash -c '/ray/test/jenkins_tests/run_asv.sh'`
+3 -1
View File
@@ -7,7 +7,9 @@ import ray.test.test_functions as test_functions
def setup():
ray.init(num_workers=4, num_cpus=4)
if not hasattr(setup, "is_initialized"):
ray.init(num_workers=4, num_cpus=4)
setup.is_initialized = True
class TimeSuite(object):