File tree Expand file tree Collapse file tree 3 files changed +36
-5
lines changed Expand file tree Collapse file tree 3 files changed +36
-5
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,23 @@ You can run the benchmark suite by doing the following:
7
7
2. Run ``asv dev `` in this directory.
8
8
9
9
To run ASV inside docker, you can use the following command:
10
- `docker run --rm --shm-size=10G --memory=10G $DOCKER_SHA bash -c '/ray/test/jenkins_tests/run_asv.sh' `
10
+ ``docker run --rm --shm-size=10G --memory=10G $DOCKER_SHA bash -c '/ray/test/jenkins_tests/run_asv.sh' ``
11
+
12
+ Visualizing Benchmarks
13
+ ======================
14
+
15
+ To visualize benchmarks, you must copy the S3 bucket down to `$RAY_DIR/python `. Assuming asv is installed,
16
+
17
+ .. code-block ::
18
+
19
+ cd $RAY_DIR/python
20
+ aws s3 sync s3://$BUCKET/ASV/ .
21
+
22
+ Then, you can run:
23
+
24
+ .. code-block ::
25
+
26
+ asv publish --no-pull
27
+ asv preview
28
+
29
+ This creates the directory and then launches a server.
Original file line number Diff line number Diff line change 11
11
12
12
// The URL or local path of the source code repository for the
13
13
// project being benchmarked
14
- "repo" : " ." ,
14
+ "repo" : " ../ " ,
15
15
16
16
// List of branches to benchmark. If not provided, defaults to "master"
17
17
// (for git) or "default" (for mercurial).
101
101
102
102
// The directory (relative to the current directory) that raw benchmark
103
103
// results are stored in. If not provided, defaults to "results".
104
- // "results_dir": "results ",
104
+ "results_dir" : " ASV_RESULTS " ,
105
105
106
106
// The directory (relative to the current directory) that the html tree
107
107
// should be written to. If not provided, defaults to "html".
Original file line number Diff line number Diff line change 6
6
# Show explicitly which commands are currently running.
7
7
set -x
8
8
9
+ BUCKET_NAME=ray-integration-testing/ASV
10
+ COMMIT=$( cat /ray/git-rev)
11
+ ASV_RESULTS_DIR=/ray/python/ASV_RESULTS
12
+ pip install awscli
13
+
14
+ # Install Ray fork of ASV
9
15
git clone https://github.com/ray-project/asv.git /tmp/asv/ || true
10
16
cd /tmp/asv/
11
17
pip install -e .
12
18
13
19
cd /ray/python/
14
- asv machine --yes
15
- asv run --show-stderr --python=same --force-record-commit=$( cat ../git-rev)
20
+ asv machine --machine jenkins
21
+ mkdir $ASV_RESULTS_DIR || true
22
+ aws s3 cp s3://$BUCKET_NAME /ASV_RESULTS/benchmarks.json $ASV_RESULTS_DIR /benchmarks.json || true
23
+
24
+ asv run --show-stderr --python=same --force-record-commit=$COMMIT
25
+
26
+ aws s3 cp $ASV_RESULTS_DIR /benchmarks.json s3://$BUCKET_NAME /ASV_RESULTS/benchmarks_$COMMIT .json
27
+ aws s3 sync $ASV_RESULTS_DIR / s3://$BUCKET_NAME /ASV_RESULTS/
You can’t perform that action at this time.
0 commit comments