2018-05-22 16:20:39 -07:00
|
|
|
Running the benchmarks
|
|
|
|
======================
|
|
|
|
|
|
|
|
You can run the benchmark suite by doing the following:
|
|
|
|
|
2018-06-05 15:55:35 -07:00
|
|
|
1. Install https://github.com/ray-project/asv: ``cd asv; pip install -e .``
|
2018-05-22 16:20:39 -07:00
|
|
|
2. Run ``asv dev`` in this directory.
|
2018-06-05 15:55:35 -07:00
|
|
|
|
|
|
|
To run ASV inside docker, you can use the following command:
|
2018-06-20 10:43:44 -07:00
|
|
|
``docker run --rm --shm-size=10G --memory=10G $DOCKER_SHA bash -c '/ray/test/jenkins_tests/run_asv.sh'``
|
2018-06-28 17:20:09 -07:00
|
|
|
``docker run --rm --shm-size=10G --memory=10G $DOCKER_SHA bash -c '/ray/test/jenkins_tests/run_rllib_asv.sh'``
|
|
|
|
|
2018-06-20 10:43:44 -07:00
|
|
|
|
|
|
|
Visualizing Benchmarks
|
|
|
|
======================
|
|
|
|
|
2018-06-28 17:20:09 -07:00
|
|
|
For visualizing regular Ray benchmarks, you must copy the S3 bucket down to `$RAY_DIR/python`.
|
2018-06-20 10:43:44 -07:00
|
|
|
|
|
|
|
.. code-block::
|
|
|
|
|
|
|
|
cd $RAY_DIR/python
|
|
|
|
aws s3 sync s3://$BUCKET/ASV/ .
|
|
|
|
|
2018-06-28 17:20:09 -07:00
|
|
|
For rllib, you must sync a _particular_ folder down to `$RLLIB_DIR (ray/python/ray/rllib)`.
|
|
|
|
|
|
|
|
.. code-block::
|
|
|
|
|
|
|
|
cd $RAY_DIR/python/ray/rllib
|
|
|
|
aws s3 sync s3://$BUCKET/RLLIB_RESULTS/ ./RLLIB_RESULTS
|
|
|
|
|
|
|
|
Then, in the directory, you can run:
|
2018-06-20 10:43:44 -07:00
|
|
|
|
|
|
|
.. code-block::
|
|
|
|
|
|
|
|
asv publish --no-pull
|
|
|
|
asv preview
|
|
|
|
|
2018-06-28 17:20:09 -07:00
|
|
|
This creates the directory and then launches a server at which you can visualize results.
|