File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,13 @@ function recover(x::Vector)
33
33
else
34
34
convert (ft, fields[fn])
35
35
end
36
+ if T == BenchmarkGroup && xs[i] isa Dict
37
+ for (k, v) in xs[i]
38
+ if v isa Vector && length (v) == 2 && v[1 ] isa String
39
+ xs[i][k] = recover (v)
40
+ end
41
+ end
42
+ end
36
43
end
37
44
T (xs... )
38
45
end
Original file line number Diff line number Diff line change 35
35
@test eq (results[1 ], b)
36
36
@test eq (results[2 ], bb)
37
37
end
38
+
39
+ # Nested BenchmarkGroups
40
+ withtempdir () do
41
+ tmp = joinpath (pwd (), " tmp.json" )
42
+
43
+ g = BenchmarkGroup ()
44
+ g[" a" ] = BenchmarkGroup ()
45
+ g[" b" ] = BenchmarkGroup ()
46
+ g[" c" ] = BenchmarkGroup ()
47
+ BenchmarkTools. save (tmp, g)
48
+
49
+ results = BenchmarkTools. load (tmp)[1 ]
50
+ @test results isa BenchmarkGroup
51
+ @test all (v-> v isa BenchmarkGroup, values (results. data))
52
+ end
38
53
end
39
54
40
55
@testset " Deprecated behaviors" begin
You can’t perform that action at this time.
0 commit comments