@@ -135,11 +135,11 @@ fn bold(s string) string {
135
135
}
136
136
137
137
fn (a Aints) str () string {
138
- avg := bold ('${a.average / 1000:5 .1f} ms' )
139
- tdev := c (tred, '${a.stddev / 1000:5 .1f} ms' )
138
+ avg := bold ('${a.average / 1000:6 .1f} ms' )
139
+ tdev := c (tred, '${a.stddev / 1000:6 .1f} ms' )
140
140
baseline := '${avg} ± σ: ${tdev} ,'
141
- tmin := c (tbcyan, '${f64(a.imin) / 1000:5 .1f} ms' )
142
- tmax := c (tbblue, '${f64(a.imax) / 1000:5 .1f} ms' )
141
+ tmin := c (tbcyan, '${f64(a.imin) / 1000:6 .1f} ms' )
142
+ tmax := c (tbblue, '${f64(a.imax) / 1000:6 .1f} ms' )
143
143
return '${baseline:-46s} ${tmin} …${tmax} '
144
144
}
145
145
@@ -345,9 +345,9 @@ fn (mut context Context) show_diff_summary() {
345
345
}
346
346
mut comparison := ''
347
347
if r.atiming.average != base {
348
- comparison = '${cpercent:+6 .1f} %'
348
+ comparison = '${cpercent:+8 .1f} %'
349
349
}
350
- mut tcomparison := 'base '
350
+ mut tcomparison := ' base '
351
351
if r.atiming.average != base {
352
352
tcomparison = readable_comparison (r.atiming.average, base, cpercent)
353
353
}
@@ -381,12 +381,12 @@ fn readable_comparison(tcurrent f64, tbase f64, cpercent f64) string {
381
381
if ! is_same {
382
382
label = c (tgreen, 'faster' )
383
383
}
384
- return '${tbase / tcurrent:4 .2f} x ${label} '
384
+ return '${tbase / tcurrent:6 .2f} x ${label} '
385
385
} else {
386
386
if ! is_same {
387
387
label = c (tcyan, 'slower' )
388
388
}
389
- return '${tcurrent / tbase:4 .2f} x ${label} '
389
+ return '${tcurrent / tbase:6 .2f} x ${label} '
390
390
}
391
391
}
392
392
0 commit comments