Change summary
tooling/perf/src/implementation.rs | 9 ++++++---
tooling/perf/src/main.rs | 2 +-
2 files changed, 7 insertions(+), 4 deletions(-)
Detailed changes
@@ -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
};
@@ -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)