@@ -14,6 +14,29 @@ $RUSTC_TIMING should point to a clone of the `https://github.com/rust-lang-nurse
14
14
repository. Optionally, ` --sync-git ` can be passed to make the collector sync with the remote repo
15
15
before and after comitting.
16
16
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
+
17
40
## How it works
18
41
19
42
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
28
51
Will only work for commits that have builds on s3://rust-lang-ci/rustc-builds: these merged after
29
52
rust-lang/rust #38748 (bors sha: 927c55d86b0be44337f37cf5b0a76fb8ba86e06c). Additionally, try builds
30
53
can also be tested, but the process is currently manual.
54
+
0 commit comments