Skip to content

Commit 0e44f5d

Browse files
thchrjrevels
authored andcommitted
make variable names for median, mean, and max values and strings consistent in show(..., t::Trial) (#116)
1 parent 66dee5d commit 0e44f5d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/trials.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@ function Base.show(io::IO, ::MIME"text/plain", t::Trial)
276276
memorystr = string(prettymemory(memory(min)))
277277
allocsstr = string(allocs(min))
278278
minstr = string(prettytime(time(min)), " (", prettypercent(gcratio(min)), " GC)")
279-
maxstr = string(prettytime(time(med)), " (", prettypercent(gcratio(med)), " GC)")
280-
medstr = string(prettytime(time(avg)), " (", prettypercent(gcratio(avg)), " GC)")
281-
meanstr = string(prettytime(time(max)), " (", prettypercent(gcratio(max)), " GC)")
279+
maxstr = string(prettytime(time(max)), " (", prettypercent(gcratio(max)), " GC)")
280+
medstr = string(prettytime(time(med)), " (", prettypercent(gcratio(med)), " GC)")
281+
meanstr = string(prettytime(time(avg)), " (", prettypercent(gcratio(avg)), " GC)")
282282
else
283283
memorystr = "N/A"
284284
allocsstr = "N/A"
@@ -292,9 +292,9 @@ function Base.show(io::IO, ::MIME"text/plain", t::Trial)
292292
println(io, " allocs estimate: ", allocsstr)
293293
println(io, " --------------")
294294
println(io, " minimum time: ", minstr)
295-
println(io, " median time: ", maxstr)
296-
println(io, " mean time: ", medstr)
297-
println(io, " maximum time: ", meanstr)
295+
println(io, " median time: ", medstr)
296+
println(io, " mean time: ", meanstr)
297+
println(io, " maximum time: ", maxstr)
298298
println(io, " --------------")
299299
println(io, " samples: ", length(t))
300300
print(io, " evals/sample: ", t.params.evals)

0 commit comments

Comments
 (0)