Skip to content

Commit bfdd30e

Browse files
authored
better pretty printing for Benchmark wrapper type (#48)
1 parent 6077536 commit bfdd30e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/execution.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ function loadparams!(b::Benchmark, params::Parameters, fields...)
1818
return b
1919
end
2020

21+
function Base.show(io::IO, b::Benchmark)
22+
str = string("Benchmark(evals=", params(b).evals,
23+
", seconds=", params(b).seconds,
24+
", samples=", params(b).samples, ")")
25+
print(io, str)
26+
end
27+
2128
#############
2229
# execution #
2330
#############

0 commit comments

Comments
 (0)