|
12 | 12 |
|
13 | 13 | Trial(params::Parameters) = Trial(params, Float64[], Float64[], typemax(Int), typemax(Int))
|
14 | 14 |
|
15 |
| -@compat function Base.:(==)(a::Trial, b::Trial) |
| 15 | +function Base.:(==)(a::Trial, b::Trial) |
16 | 16 | return a.params == b.params &&
|
17 | 17 | a.times == b.times &&
|
18 | 18 | a.gctimes == b.gctimes &&
|
@@ -98,7 +98,7 @@ function TrialEstimate(trial::Trial, t, gct)
|
98 | 98 | return TrialEstimate(params(trial), t, gct, memory(trial), allocs(trial))
|
99 | 99 | end
|
100 | 100 |
|
101 |
| -@compat function Base.:(==)(a::TrialEstimate, b::TrialEstimate) |
| 101 | +function Base.:(==)(a::TrialEstimate, b::TrialEstimate) |
102 | 102 | return a.params == b.params &&
|
103 | 103 | a.time == b.time &&
|
104 | 104 | a.gctime == b.gctime &&
|
@@ -141,7 +141,7 @@ mutable struct TrialRatio
|
141 | 141 | allocs::Float64
|
142 | 142 | end
|
143 | 143 |
|
144 |
| -@compat function Base.:(==)(a::TrialRatio, b::TrialRatio) |
| 144 | +function Base.:(==)(a::TrialRatio, b::TrialRatio) |
145 | 145 | return a.params == b.params &&
|
146 | 146 | a.time == b.time &&
|
147 | 147 | a.gctime == b.gctime &&
|
@@ -190,7 +190,7 @@ function TrialJudgement(r::TrialRatio)
|
190 | 190 | return TrialJudgement(r, judge(time(r), ttol), judge(memory(r), mtol))
|
191 | 191 | end
|
192 | 192 |
|
193 |
| -@compat function Base.:(==)(a::TrialJudgement, b::TrialJudgement) |
| 193 | +function Base.:(==)(a::TrialJudgement, b::TrialJudgement) |
194 | 194 | return a.ratio == b.ratio &&
|
195 | 195 | a.time == b.time &&
|
196 | 196 | a.memory == b.memory
|
@@ -267,7 +267,7 @@ Base.show(io::IO, t::TrialEstimate) = print(io, "TrialEstimate(", prettytime(tim
|
267 | 267 | Base.show(io::IO, t::TrialRatio) = print(io, "TrialRatio(", prettypercent(time(t)), ")")
|
268 | 268 | Base.show(io::IO, t::TrialJudgement) = print(io, "TrialJudgement(", prettydiff(time(ratio(t))), " => ", time(t), ")")
|
269 | 269 |
|
270 |
| -@compat function Base.show(io::IO, ::MIME"text/plain", t::Trial) |
| 270 | +function Base.show(io::IO, ::MIME"text/plain", t::Trial) |
271 | 271 | if length(t) > 0
|
272 | 272 | min = minimum(t)
|
273 | 273 | max = maximum(t)
|
@@ -300,23 +300,23 @@ Base.show(io::IO, t::TrialJudgement) = print(io, "TrialJudgement(", prettydiff(t
|
300 | 300 | print(io, " evals/sample: ", t.params.evals)
|
301 | 301 | end
|
302 | 302 |
|
303 |
| -@compat function Base.show(io::IO, ::MIME"text/plain", t::TrialEstimate) |
| 303 | +function Base.show(io::IO, ::MIME"text/plain", t::TrialEstimate) |
304 | 304 | println(io, "BenchmarkTools.TrialEstimate: ")
|
305 | 305 | println(io, " time: ", prettytime(time(t)))
|
306 | 306 | println(io, " gctime: ", prettytime(gctime(t)), " (", prettypercent(gctime(t) / time(t)),")")
|
307 | 307 | println(io, " memory: ", prettymemory(memory(t)))
|
308 | 308 | print(io, " allocs: ", allocs(t))
|
309 | 309 | end
|
310 | 310 |
|
311 |
| -@compat function Base.show(io::IO, ::MIME"text/plain", t::TrialRatio) |
| 311 | +function Base.show(io::IO, ::MIME"text/plain", t::TrialRatio) |
312 | 312 | println(io, "BenchmarkTools.TrialRatio: ")
|
313 | 313 | println(io, " time: ", time(t))
|
314 | 314 | println(io, " gctime: ", gctime(t))
|
315 | 315 | println(io, " memory: ", memory(t))
|
316 | 316 | print(io, " allocs: ", allocs(t))
|
317 | 317 | end
|
318 | 318 |
|
319 |
| -@compat function Base.show(io::IO, ::MIME"text/plain", t::TrialJudgement) |
| 319 | +function Base.show(io::IO, ::MIME"text/plain", t::TrialJudgement) |
320 | 320 | println(io, "BenchmarkTools.TrialJudgement: ")
|
321 | 321 | println(io, " time: ", prettydiff(time(ratio(t))), " => ", time(t), " (", prettypercent(params(t).time_tolerance), " tolerance)")
|
322 | 322 | print(io, " memory: ", prettydiff(memory(ratio(t))), " => ", memory(t), " (", prettypercent(params(t).memory_tolerance), " tolerance)")
|
|
0 commit comments