|
32 | 32 | }
|
33 | 33 | }
|
34 | 34 | }
|
| 35 | + }, |
| 36 | + "b": true, |
| 37 | + "c": { |
| 38 | + "d": true |
35 | 39 | }
|
36 | 40 | },
|
37 | 41 | "cases": [
|
38 | 42 | {
|
39 | 43 | "comment": "simple field",
|
40 |
| - "expression": "a", |
| 44 | + "expression": "b", |
41 | 45 | "bench": "full"
|
42 | 46 | },
|
43 | 47 | {
|
44 | 48 | "comment": "simple subexpression",
|
45 |
| - "expression": "a.b", |
| 49 | + "expression": "c.d", |
46 | 50 | "bench": "full"
|
47 | 51 | },
|
48 | 52 | {
|
49 |
| - "comment": "deep field selection", |
| 53 | + "comment": "deep field selection no match", |
50 | 54 | "expression": "a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s",
|
51 | 55 | "bench": "full"
|
52 | 56 | },
|
| 57 | + { |
| 58 | + "comment": "deep field selection", |
| 59 | + "expression": "a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p", |
| 60 | + "bench": "full" |
| 61 | + }, |
53 | 62 | {
|
54 | 63 | "comment": "simple or",
|
55 |
| - "expression": "not_there || a", |
| 64 | + "expression": "not_there || b", |
56 | 65 | "bench": "full"
|
57 | 66 | }
|
58 | 67 | ]
|
|
76 | 85 | },
|
77 | 86 | {
|
78 | 87 | "comment": "lots of summing",
|
79 |
| - "expression": "sum(z, y, x, w, v, u, t, s, r, q, p, o, n, m, l, k, j, i, h, g, f, e, d, c, b, a)", |
| 88 | + "expression": "sum([z, y, x, w, v, u, t, s, r, q, p, o, n, m, l, k, j, i, h, g, f, e, d, c, b, a])", |
| 89 | + "bench": "full" |
| 90 | + }, |
| 91 | + { |
| 92 | + "comment": "lots of function application", |
| 93 | + "expression": "sum([z, sum([y, sum([x, sum([w, sum([v, sum([u, sum([t, sum([s, sum([r, sum([q, sum([p, sum([o, sum([n, sum([m, sum([l, sum([k, sum([j, sum([i, sum([h, sum([g, sum([f, sum([e, sum([d, sum([c, sum([b, a])])])])])])])])])])])])])])])])])])])])])])])])])", |
80 | 94 | "bench": "full"
|
81 | 95 | },
|
82 | 96 | {
|
|
116 | 130 | },
|
117 | 131 | {
|
118 | 132 | "comment": "filter projection",
|
119 |
| - "expression": "foo[bar > baz][qux > baz]", |
| 133 | + "expression": "foo[?bar > baz][?qux > baz]", |
120 | 134 | "bench": "parse"
|
121 | 135 | }
|
122 | 136 | ]
|
|
0 commit comments