...
1-- stats.txt --
2Leaks: 0
3Freed: 11
4Reused: 6
5Allocs: 5
6Retain: 0
7
8Unifications: 7
9Conjuncts: 29
10Disjuncts: 11
11
12-- in.cue --
13package bench1
14
15#Value: {type: "float"} | {type: "string"}
16
17foo: {type: "string"}
18foo: #Value
19foo: #Value
20foo: #Value
21foo: #Value
22foo: #Value
23foo: #Value
24foo: #Value
25foo: #Value
26foo: #Value
27foo: #Value
28foo: #Value
29foo: #Value
30foo: #Value
31foo: #Value
32foo: #Value
33-- out/eval/stats --
34Leaks: 0
35Freed: 11
36Reused: 6
37Allocs: 5
38Retain: 0
39
40Unifications: 7
41Conjuncts: 29
42Disjuncts: 11
43-- out/eval --
44(struct){
45 #Value: (#struct){ |((#struct){
46 type: (string){ "float" }
47 }, (#struct){
48 type: (string){ "string" }
49 }) }
50 foo: (#struct){
51 type: (string){ "string" }
52 }
53}
54-- out/compile --
55--- in.cue
56{
57 #Value: ({
58 type: "float"
59 }|{
60 type: "string"
61 })
62 foo: {
63 type: "string"
64 }
65 foo: 〈0;#Value〉
66 foo: 〈0;#Value〉
67 foo: 〈0;#Value〉
68 foo: 〈0;#Value〉
69 foo: 〈0;#Value〉
70 foo: 〈0;#Value〉
71 foo: 〈0;#Value〉
72 foo: 〈0;#Value〉
73 foo: 〈0;#Value〉
74 foo: 〈0;#Value〉
75 foo: 〈0;#Value〉
76 foo: 〈0;#Value〉
77 foo: 〈0;#Value〉
78 foo: 〈0;#Value〉
79 foo: 〈0;#Value〉
80}
View as plain text