Skip to content

Commit 2786109

Browse files
Merge pull request #380 from asinghvi17/patch-1
"evaluations" -> "evaluations each" when printing `Trial`
2 parents 834f39d + 7a6b20b commit 2786109

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/trials.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ function Base.show(io::IO, ::MIME"text/plain", t::Trial)
377377
else
378378
""
379379
end,
380-
".\n",
380+
" per sample.\n",
381381
)
382382

383383
perm = sortperm(t.times)

test/TrialsTests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ end
268268

269269
trial = BenchmarkTools.Trial(BenchmarkTools.Parameters(), [1.0, 1.01], [0.0, 0.0], 0, 0)
270270
@test sprint(show, "text/plain", trial) == """
271-
BenchmarkTools.Trial: 2 samples with 1 evaluation.
271+
BenchmarkTools.Trial: 2 samples with 1 evaluation per sample.
272272
Range (min … max): 1.000 ns … 1.010 ns ┊ GC (min … max): 0.00% … 0.00%
273273
Time (median): 1.005 ns ┊ GC (median): 0.00%
274274
Time (mean ± σ): 1.005 ns ± 0.007 ns ┊ GC (mean ± σ): 0.00% ± 0.00%

0 commit comments

Comments
 (0)