@@ -56,35 +56,35 @@ bench("e.literal: named tuple literal", () => {
5656 str : "asdf" ,
5757 } ) ;
5858 return { } as typeof lit ;
59- } ) . types ( [ 8694 , "instantiations" ] ) ;
59+ } ) . types ( [ 8726 , "instantiations" ] ) ;
6060
6161bench ( "e.tuple: named tuple literal" , ( ) => {
6262 const lit = e . tuple ( { str : str0 } ) ;
6363 return { } as typeof lit ;
64- } ) . types ( [ 6054 , "instantiations" ] ) ;
64+ } ) . types ( [ 6059 , "instantiations" ] ) ;
6565
6666bench ( "e.literal: tuple literal" , ( ) => {
6767 const lit = e . literal ( e . tuple ( [ e . str , e . int32 ] ) , [ "asdf" , 42 ] ) ;
6868 return { } as typeof lit ;
69- } ) . types ( [ 3913 , "instantiations" ] ) ;
69+ } ) . types ( [ 3914 , "instantiations" ] ) ;
7070
7171bench ( "e.tuple: tuple literal" , ( ) => {
7272 const lit = e . tuple ( [ str0 , int0 ] ) ;
7373 return { } as typeof lit ;
74- } ) . types ( [ 2821 , "instantiations" ] ) ;
74+ } ) . types ( [ 2822 , "instantiations" ] ) ;
7575
7676bench ( "e.literal: array of tuples" , ( ) => {
7777 const lit = e . literal ( e . array ( e . tuple ( [ e . str , e . int32 ] ) ) , [
7878 [ "asdf" , 42 ] ,
7979 [ "qwer" , 43 ] ,
8080 ] ) ;
8181 return { } as typeof lit ;
82- } ) . types ( [ 4203 , "instantiations" ] ) ;
82+ } ) . types ( [ 4234 , "instantiations" ] ) ;
8383
8484bench ( "e.array: array of tuples" , ( ) => {
8585 const lit = e . array ( [ e . tuple ( [ str0 , int0 ] ) , e . tuple ( [ str1 , int1 ] ) ] ) ;
8686 return { } as typeof lit ;
87- } ) . types ( [ 14620 , "instantiations" ] ) ;
87+ } ) . types ( [ 15134 , "instantiations" ] ) ;
8888
8989bench ( "base type: array" , ( ) => {
9090 const baseType = e . array ( e . str ) ;
@@ -94,34 +94,34 @@ bench("base type: array", () => {
9494bench ( "base type: named tuple" , ( ) => {
9595 const baseType = e . tuple ( { str : e . str } ) ;
9696 return { } as typeof baseType ;
97- } ) . types ( [ 2580 , "instantiations" ] ) ;
97+ } ) . types ( [ 2584 , "instantiations" ] ) ;
9898
9999bench ( "set: scalars" , ( ) => {
100100 const set = e . set ( int0 , int1 , int0 ) ;
101101 return { } as typeof set ;
102- } ) . types ( [ 6080 , "instantiations" ] ) ;
102+ } ) . types ( [ 5981 , "instantiations" ] ) ;
103103
104104bench ( "select: scalar" , ( ) => {
105105 const query = e . select ( int0 ) ;
106106 return { } as typeof query ;
107- } ) . types ( [ 317 , "instantiations" ] ) ;
107+ } ) . types ( [ 318 , "instantiations" ] ) ;
108108
109109bench ( "select: free object" , ( ) => {
110110 const query = e . select ( { meaning : int0 } ) ;
111111 return { } as typeof query ;
112- } ) . types ( [ 827 , "instantiations" ] ) ;
112+ } ) . types ( [ 832 , "instantiations" ] ) ;
113113
114114bench ( "select: id only" , ( ) => {
115115 const query = e . select ( e . User , ( ) => ( { id : true } ) ) ;
116116 return { } as typeof query ;
117- } ) . types ( [ 1302 , "instantiations" ] ) ;
117+ } ) . types ( [ 1335 , "instantiations" ] ) ;
118118
119119bench ( "select: filtered" , ( ) => {
120120 const query = e . select ( e . User , ( ) => ( {
121121 filter_single : { id : e . uuid ( "123" ) } ,
122122 } ) ) ;
123123 return { } as typeof query ;
124- } ) . types ( [ 2458 , "instantiations" ] ) ;
124+ } ) . types ( [ 2491 , "instantiations" ] ) ;
125125
126126bench ( "select: nested" , ( ) => {
127127 const user = e . select ( e . User , ( ) => ( {
@@ -130,7 +130,7 @@ bench("select: nested", () => {
130130 const query = e . select ( user , ( ) => ( { id : true } ) ) ;
131131
132132 return { } as typeof query ;
133- } ) . types ( [ 3443 , "instantiations" ] ) ;
133+ } ) . types ( [ 3908 , "instantiations" ] ) ;
134134
135135bench ( "select: complex" , ( ) => {
136136 const query = e . select ( e . Movie , ( ) => {
@@ -157,7 +157,7 @@ bench("select: complex", () => {
157157 } ;
158158 } ) ;
159159 return { } as typeof query ;
160- } ) . types ( [ 26429 , "instantiations" ] ) ;
160+ } ) . types ( [ 26665 , "instantiations" ] ) ;
161161
162162bench ( "select: nested operator" , ( ) => {
163163 const query = e . select ( e . Hero , ( h ) => ( {
@@ -172,7 +172,7 @@ bench("select: nested operator", () => {
172172 order_by : h . name ,
173173 } ) ) ;
174174 return { } as typeof query ;
175- } ) . types ( [ 16571 , "instantiations" ] ) ;
175+ } ) . types ( [ 16920 , "instantiations" ] ) ;
176176
177177bench ( "select: with filter" , ( ) => {
178178 const query = e . select ( e . Hero , ( hero ) => ( {
@@ -184,7 +184,7 @@ bench("select: with filter", () => {
184184 filter_single : e . op ( hero . name , "=" , "Peter Parker" ) ,
185185 } ) ) ;
186186 return { } as typeof query ;
187- } ) . types ( [ 8889 , "instantiations" ] ) ;
187+ } ) . types ( [ 9058 , "instantiations" ] ) ;
188188
189189bench ( "select: with order" , ( ) => {
190190 const query = e . select ( e . Hero , ( hero ) => ( {
@@ -197,7 +197,7 @@ bench("select: with order", () => {
197197 filter_single : e . op ( hero . name , "=" , "Peter Parker" ) ,
198198 } ) ) ;
199199 return { } as typeof query ;
200- } ) . types ( [ 9188 , "instantiations" ] ) ;
200+ } ) . types ( [ 9356 , "instantiations" ] ) ;
201201
202202bench ( "select: with limit" , ( ) => {
203203 const query = e . select ( e . Hero , ( hero ) => ( {
@@ -210,7 +210,7 @@ bench("select: with limit", () => {
210210 filter_single : e . op ( hero . name , "=" , "Peter Parker" ) ,
211211 } ) ) ;
212212 return { } as typeof query ;
213- } ) . types ( [ 8891 , "instantiations" ] ) ;
213+ } ) . types ( [ 9060 , "instantiations" ] ) ;
214214
215215bench ( "select: with offset" , ( ) => {
216216 const query = e . select ( e . Hero , ( hero ) => ( {
@@ -223,14 +223,14 @@ bench("select: with offset", () => {
223223 filter_single : e . op ( hero . name , "=" , "Peter Parker" ) ,
224224 } ) ) ;
225225 return { } as typeof query ;
226- } ) . types ( [ 8891 , "instantiations" ] ) ;
226+ } ) . types ( [ 9060 , "instantiations" ] ) ;
227227
228228bench ( "select: with pointer override" , ( ) => {
229229 const query = e . select ( e . Hero , ( h ) => ( {
230230 height : e . decimal ( "10.0" ) ,
231231 } ) ) ;
232232 return { } as typeof query ;
233- } ) . types ( [ 2160 , "instantiations" ] ) ;
233+ } ) . types ( [ 2321 , "instantiations" ] ) ;
234234
235235bench ( "params select" , ( ) => {
236236 const query = e . params ( { name : e . str } , ( params ) =>
@@ -244,7 +244,7 @@ bench("params select", () => {
244244 } ) ) ,
245245 ) ;
246246 return { } as typeof query ;
247- } ) . types ( [ 13625 , "instantiations" ] ) ;
247+ } ) . types ( [ 13859 , "instantiations" ] ) ;
248248
249249bench ( "e.op: literalStr = literalStr" , ( ) => {
250250 const op = e . op ( "a" , "=" , "b" ) ;
@@ -279,7 +279,7 @@ bench("e.op: array of strs = array of strs", () => {
279279bench ( "e.op: object element in object set" , ( ) => {
280280 const op = e . op ( singleUser , "in" , allUsers ) ;
281281 return { } as typeof op ;
282- } ) . types ( [ 8924 , "instantiations" ] ) ;
282+ } ) . types ( [ 9152 , "instantiations" ] ) ;
283283
284284bench ( "e.op: not bool" , ( ) => {
285285 const op = e . op ( "not" , true ) ;
@@ -305,19 +305,17 @@ bench("e.op: complex if_else", () => {
305305 e . cast ( e . User , e . set ( ) ) ,
306306 ) ;
307307 return { } as typeof op ;
308- } ) . types ( [ 14871 , "instantiations" ] ) ;
308+ } ) . types ( [ 15159 , "instantiations" ] ) ;
309309
310- /*
311310bench ( "e.op: simple if_else" , ( ) => {
312311 const op = e . op ( "if" , true , "then" , "true" , "else" , "false" ) ;
313312 return { } as typeof op ;
314- }).types([16097, "instantiations"]);
315- */
313+ } ) . types ( [ 13851 , "instantiations" ] ) ;
316314
317315bench ( "e.op: complex coalesce" , ( ) => {
318316 const op = e . op ( allUsers , "??" , newUser ) ;
319317 return { } as typeof op ;
320- } ) . types ( [ 12917 , "instantiations" ] ) ;
318+ } ) . types ( [ 13460 , "instantiations" ] ) ;
321319
322320bench ( "e.op: nested and and or operations" , ( ) => {
323321 const op = e . op (
@@ -416,7 +414,7 @@ bench("e.op: integer greater than or equal", () => {
416414bench ( "e.op: set union" , ( ) => {
417415 const op = e . op ( allUsers , "union" , singleUser ) ;
418416 return { } as typeof op ;
419- } ) . types ( [ 59552 , "instantiations" ] ) ;
417+ } ) . types ( [ 60844 , "instantiations" ] ) ;
420418
421419bench ( "e.op: nested boolean and" , ( ) => {
422420 const op = e . op ( e . op ( bool0 , "and" , bool1 ) , "and" , e . op ( bool1 , "or" , bool0 ) ) ;
0 commit comments