@@ -24,10 +24,9 @@ pub fn measure(
24
24
) -> anyhow:: Result < ( ) > {
25
25
checkout ( ) . context ( "checking out rust-lang/rust" ) ?;
26
26
27
- // Run the compiler twice -- we'll call min(duration) on each crate later
28
- // on. This should (hopefully) reduce variance. It's also a 2x bump in
29
- // compile times, but we can afford the extra 6 minutes (presuming it
30
- // actually benefits us).
27
+ // Run the compiler multiple times -- we'll call min(duration) on each crate
28
+ // later on. This should (hopefully) reduce variance.
29
+ record ( rt, conn, compiler, artifact, aid) ?;
31
30
record ( rt, conn, compiler, artifact, aid) ?;
32
31
record ( rt, conn, compiler, artifact, aid) ?;
33
32
@@ -100,9 +99,9 @@ fn record(
100
99
. arg ( "0" )
101
100
// We want bootstrap and the Cargos it spawns to have no parallelism --
102
101
// if multiple rustcs are competing for jobserver tokens, we introduce
103
- // quite a bit of variance. Instead, we configure -j1 here, and then
104
- // full all vCPU parallelism for each rustc.
105
- . arg ( "-j2 " )
102
+ // quite a bit of variance. Instead, we configure -j3 here, and then
103
+ // 1/3 all vCPU parallelism for each rustc.
104
+ . arg ( "-j3 " )
106
105
. arg ( "compiler/rustc" ) ,
107
106
)
108
107
. context ( "building rustc" ) ?;
0 commit comments