Compare commits

...

1 Commits

Author SHA1 Message Date
Nia Espera
c7b7722111 perf: fixups 2025-10-17 22:54:26 +02:00
2 changed files with 7 additions and 4 deletions

View File

@@ -420,13 +420,16 @@ impl std::fmt::Display for PerfReport {
for (cat, delta) in sorted.into_iter().rev() {
const SIGN_POS: &str = "";
const SIGN_NEG: &str = "";
const SIGN_NEUTRAL: &str = "±";
const SIGN_NEUTRAL_POS: &str = "±";
const SIGN_NEUTRAL_NEG: &str = "±↓";
let prettify = |time: f64| {
let sign = if time > 0.05 {
SIGN_POS
} else if time < 0.05 && time > -0.05 {
SIGN_NEUTRAL
} else if time > 0. {
SIGN_NEUTRAL_POS
} else if time > -0.05 {
SIGN_NEUTRAL_NEG
} else {
SIGN_NEG
};

View File

@@ -228,8 +228,8 @@ fn compare_profiles(args: &[String]) {
a.strip_prefix("--save=")
.expect("FATAL: save param formatted incorrectly"),
);
ident_idx = 1;
}
ident_idx = 1;
});
let ident_new = args
.get(ident_idx)