diff --git a/sledge/report/sledge_report.ml b/sledge/report/sledge_report.ml
index 7b9c73b30..85327dc49 100644
--- a/sledge/report/sledge_report.ml
+++ b/sledge/report/sledge_report.ml
@@ -310,22 +310,22 @@ let write_html ranges rows chan =
Test |
elapsed (sec) |
Δ
|
- Δ%%
|
+ |
user (sec) |
Δ
|
- Δ%%
|
+ |
system (sec) |
Δ
|
- Δ%%
|
+ |
alloc (bytes) |
Δ
|
- Δ%%
|
+ |
promo (bytes) |
Δ
|
- Δ%%
|
+ |
peak (bytes) |
Δ
|
- Δ%%
|
+ |
Status |
Δ
|
Steps |
@@ -333,7 +333,7 @@ let write_html ranges rows chan =
Cover |
%% |
Δ
|
- Δ%%
|
+ |
Solver Steps |
Δ
|
|} ;
@@ -378,21 +378,23 @@ let write_html ranges rows chan =
in
let delta max pct t ppf d =
let r = 100. *. d /. t in
+ let x = (t -. d) /. t in
Printf.fprintf ppf
"%12.3f | \n\
- %12.0f%% | \n"
+ %12.2fx | \n"
(color max d) d (color pct r)
- (Base.Float.round_decimal ~decimal_digits:2 r)
+ (Base.Float.round_decimal ~decimal_digits:2 x)
in
let delta_mem max pct w ppf d =
let r = if Float.(abs d < 0.000001) then 0. else 100. *. d /. w in
+ let x = (w -. d) /. w in
Printf.fprintf ppf
"%s | \n\
- %12.0f%% | \n"
+ %12.2fx | \n"
(color max d)
Core_kernel.Byte_units.(to_string_short (of_megabytes d))
(color pct r)
- (Base.Float.round_decimal ~decimal_digits:2 r)
+ (Base.Float.round_decimal ~decimal_digits:2 x)
in
let timed = delta ranges.max_time ranges.pct_time in
let allocd = delta_mem ranges.max_alloc ranges.pct_alloc in