Skip to content

Commit 93dde42

Browse files
Add documentation regarding local and try build benchmarks.
Fixes #70.
1 parent d179309 commit 93dde42

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

collector/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,29 @@ $RUSTC_TIMING should point to a clone of the `https://github.com/rust-lang-nurse
1414
repository. Optionally, `--sync-git` can be passed to make the collector sync with the remote repo
1515
before and after comitting.
1616

17+
### Running locally
18+
19+
Follow the standard instructions above, but run like this:
20+
21+
```
22+
./target/release/collector --benchmarks collector/benchmarks --output-repo $RUSTC_TIMING \
23+
bench_local $COMMIT_HASH $DATE $RUSTC
24+
```
25+
26+
$RUSTC should point to the compiled rustc in stage1 or stage2, i.e.
27+
`./build/x86_64-unknown-linux-gnu/stage2/bin/rustc`. Stage 2 is likely a little better for
28+
benchmarking purposes, but not critical.
29+
30+
Once this is done, you can run the site (`./target/release/site $RUSTC_TIMING`) and use the
31+
comparison page to compare the before/after runs.
32+
33+
### @bors try builds
34+
35+
Alternatively, you can ping `simulacrum` on IRC to run the benchmarks on the server for a try build.
36+
This, today, consists of running `bench_commit $COMMIT_HASH` for the try build, and will take
37+
around ~30 minutes once the try build completes. This is often the preferred approach, though does
38+
take longer than running locally (as you have to wait for the try build to complete on Travis).
39+
1740
## How it works
1841

1942
We download the artifacts (rustc, rust-std, cargo) produced by CI and properly unarchive them into
@@ -28,3 +51,4 @@ x86_64-unknown-linux-gnu is supported, but the system should trivially expand to
2851
Will only work for commits that have builds on s3://rust-lang-ci/rustc-builds: these merged after
2952
rust-lang/rust#38748 (bors sha: 927c55d86b0be44337f37cf5b0a76fb8ba86e06c). Additionally, try builds
3053
can also be tested, but the process is currently manual.
54+

0 commit comments

Comments
 (0)