Skip to content

Commit

Permalink
make variable names for median, mean, and max values and strings cons…
Browse files Browse the repository at this point in the history
…istent in show(..., t::Trial) (#116)
  • Loading branch information
thchr authored and jrevels committed Sep 4, 2018
1 parent 66dee5d commit 0e44f5d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/trials.jl
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,9 @@ function Base.show(io::IO, ::MIME"text/plain", t::Trial)
memorystr = string(prettymemory(memory(min)))
allocsstr = string(allocs(min))
minstr = string(prettytime(time(min)), " (", prettypercent(gcratio(min)), " GC)")
maxstr = string(prettytime(time(med)), " (", prettypercent(gcratio(med)), " GC)")
medstr = string(prettytime(time(avg)), " (", prettypercent(gcratio(avg)), " GC)")
meanstr = string(prettytime(time(max)), " (", prettypercent(gcratio(max)), " GC)")
maxstr = string(prettytime(time(max)), " (", prettypercent(gcratio(max)), " GC)")
medstr = string(prettytime(time(med)), " (", prettypercent(gcratio(med)), " GC)")
meanstr = string(prettytime(time(avg)), " (", prettypercent(gcratio(avg)), " GC)")
else
memorystr = "N/A"
allocsstr = "N/A"
Expand All @@ -292,9 +292,9 @@ function Base.show(io::IO, ::MIME"text/plain", t::Trial)
println(io, " allocs estimate: ", allocsstr)
println(io, " --------------")
println(io, " minimum time: ", minstr)
println(io, " median time: ", maxstr)
println(io, " mean time: ", medstr)
println(io, " maximum time: ", meanstr)
println(io, " median time: ", medstr)
println(io, " mean time: ", meanstr)
println(io, " maximum time: ", maxstr)
println(io, " --------------")
println(io, " samples: ", length(t))
print(io, " evals/sample: ", t.params.evals)
Expand Down

0 comments on commit 0e44f5d

Please sign in to comment.