@@ -135,8 +135,9 @@ tune!(b)
135
135
# test kwargs separated by `,`
136
136
@benchmark (output= sin (x), setup= (x= 1.0 ; output= 0.0 ), teardown= (@test output == sin (x)))
137
137
138
- for (tf, rex1, rex2) in ((false , r" 0.5 ns +Histogram: frequency by time +8 ns" , r" Histogram: frequency" ),
139
- (true , r" 0.5 ns +Histogram: log\( frequency\) by time +8 ns" , r" Histogram: log\( frequency\) " ))
138
+ for (tf, rex1, rex2) in ((false , r" 0.5 ns " , r" [0-9_]+ samples, each" ),
139
+ (missing , r" 0.5 ns " , r" [0-9_]+ samples, each" ),
140
+ (true , r" 0.5 ns +log\( counts\) from " , r" log\( counts\) from [0-9_]+ samples" ))
140
141
io = IOBuffer ()
141
142
ioctx = IOContext (io, :histmin => 0.5 , :histmax => 8 , :logbins => tf)
142
143
@show tf
@@ -154,13 +155,6 @@ for (tf, rex1, rex2) in ((false, r"0.5 ns +Histogram: frequency by time +8 ns",
154
155
str = String (take! (io))
155
156
idx = findfirst (rex2, str)
156
157
@test isa (idx, UnitRange)
157
- # A peaked distribution will trigger log by default
158
- t = [fill (1 , 21 ); 2 ]
159
- b = BenchmarkTools. Trial (BenchmarkTools. DEFAULT_PARAMETERS, t/ sum (t)* 1e9 * BenchmarkTools. DEFAULT_PARAMETERS. seconds, zeros (100 ), 0 , 0 )
160
- show (ioctx, MIME (" text/plain" ), b)
161
- str = String (take! (io))
162
- idx = findfirst (rex2, str)
163
- @test isa (idx, UnitRange)
164
158
end
165
159
166
160
# ############
0 commit comments