mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
test: Auto-redact bench timing results
This commit is contained in:
parent
6a7b15a61e
commit
02459b707f
@ -178,6 +178,16 @@ fn add_common_redactions(subs: &mut snapbox::Redactions) {
|
|||||||
if let Some(alt_target) = try_alternate() {
|
if let Some(alt_target) = try_alternate() {
|
||||||
subs.insert("[ALT_TARGET]", alt_target).unwrap();
|
subs.insert("[ALT_TARGET]", alt_target).unwrap();
|
||||||
}
|
}
|
||||||
|
subs.insert(
|
||||||
|
"[AVG_ELAPSED]",
|
||||||
|
regex!("(?<redacted>[0-9]+(\\.[0-9]+)?) ns/iter"),
|
||||||
|
)
|
||||||
|
.unwrap();
|
||||||
|
subs.insert(
|
||||||
|
"[JITTER]",
|
||||||
|
regex!("ns/iter \\(\\+/- (?<redacted>[0-9]+(\\.[0-9]+)?)\\)"),
|
||||||
|
)
|
||||||
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
static MIN_LITERAL_REDACTIONS: &[(&str, &str)] = &[
|
static MIN_LITERAL_REDACTIONS: &[(&str, &str)] = &[
|
||||||
|
Loading…
x
Reference in New Issue
Block a user