Skip to content

Add parser benchmarks - #1422

Merged
dmitriplotnikov merged 2 commits into
masterfrom
parser-benchmarks
Aug 19, 2026
Merged

Add parser benchmarks#1422
dmitriplotnikov merged 2 commits into
masterfrom
parser-benchmarks

Conversation

@dmitriplotnikov

Copy link
Copy Markdown
Collaborator

Add parser benchmark suite in parser/bench to evaluate parser performance across 4 coarse-grained categories:

  • Simple: Common, representative CEL expressions (arithmetic, comparisons, logical, conditionals, indexing, literals).
  • Complex: Deeply chained expressions, nested parentheses, message constructors, operator precedence chains.
  • Macros: Comprehension and receiver macros (has, all, map, filter, exists_one, optMap).
  • Errors: Representative syntax error cases covering invalid tokens, unclosed delimiters, reserved keywords, and deep chain errors.

@TristonianJones

Copy link
Copy Markdown
Collaborator

There are some existing benchmarks under parser_test.go within the BenchmarkParse path. Are these covering what you're looking for? Or could the existing tests be annotated with the categories you'd like to see?

@dmitriplotnikov
dmitriplotnikov merged commit 4715f2f into master Aug 19, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants