File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,10 @@ impl Metrics for CompileTime {
30
30
fn prepare ( & self ) {
31
31
let command = format ! ( "cargo build --release --example {}" , self . example_name) ;
32
32
let sh = Shell :: new ( ) . unwrap ( ) ;
33
+ let json = format ! ( "build-{}.json" , self . nb_jobs) ;
33
34
cmd ! (
34
35
sh,
35
- "hyperfine --export-json build. json --prepare 'cargo clean; sleep 2' {command}"
36
+ "hyperfine --export-json { json} --prepare 'cargo clean; sleep 2' {command}"
36
37
)
37
38
. run ( )
38
39
. unwrap ( ) ;
@@ -41,7 +42,7 @@ impl Metrics for CompileTime {
41
42
fn artifacts ( & self ) -> HashMap < String , PathBuf > {
42
43
HashMap :: from ( [ (
43
44
"compile-time.stats" . to_string ( ) ,
44
- Path :: new ( "build.json" ) . to_path_buf ( ) ,
45
+ Path :: new ( & format ! ( "build-{} .json" , self . nb_jobs ) ) . to_path_buf ( ) ,
45
46
) ] )
46
47
}
47
48
You can’t perform that action at this time.
0 commit comments