File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
criterion_compat/criterion_fork/src/analysis
divan_compat/divan_fork/src Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,9 @@ mod codspeed {
305
305
uri : uri. clone ( ) ,
306
306
} )
307
307
{
308
- if codspeed:: utils:: running_with_codspeed_runner ( ) {
308
+ if codspeed:: utils:: running_with_codspeed_runner ( )
309
+ && std:: env:: var ( "CODSPEED_PERF_ENABLED" ) . is_ok ( )
310
+ {
309
311
eprintln ! ( "Failed to send benchmark URI to runner: {error:?}" ) ;
310
312
}
311
313
}
Original file line number Diff line number Diff line change @@ -438,7 +438,9 @@ mod codspeed {
438
438
uri : uri. clone ( ) ,
439
439
} )
440
440
{
441
- if codspeed:: utils:: running_with_codspeed_runner ( ) {
441
+ if codspeed:: utils:: running_with_codspeed_runner ( )
442
+ && std:: env:: var ( "CODSPEED_PERF_ENABLED" ) . is_ok ( )
443
+ {
442
444
eprintln ! ( "Failed to send benchmark URI to runner: {error:?}" ) ;
443
445
}
444
446
}
You can’t perform that action at this time.
0 commit comments