Skip to content

Commit

Permalink
Add operator benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttrinh committed Apr 3, 2024
1 parent 4108acf commit 072e306
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions integration-tests/lts/bench.ts
Expand Up @@ -193,3 +193,13 @@ bench("params select", () => {
);
return {} as typeof query;
}).types([11290, "instantiations"]);

bench("e.op: str = str", () => {
const op = e.op(e.str("a"), "=", e.str("b"));
return {} as typeof op;
}).types([1854, "instantiations"]);

bench("e.op: str ilike str", () => {
const op = e.op(e.str("a"), "ilike", e.str("b"));
return {} as typeof op;
}).types([51413, "instantiations"]);

0 comments on commit 072e306

Please sign in to comment.