Skip to content

Commit

Permalink
plus sign for positive delta
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec committed Jun 21, 2024
1 parent 89808d8 commit 3a579af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bencher/src/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ pub(crate) fn write_results(out_dir: &Path, results: Vec<MolluskComputeUnitBench
"--".to_string()
} else {
no_changes = false;
delta.to_formatted_string(&Locale::en)
if delta > 0 {
format!("+{}", delta.to_formatted_string(&Locale::en))
} else {
delta.to_formatted_string(&Locale::en)
}
}
}
None => {
Expand Down

0 comments on commit 3a579af

Please sign in to comment.