Skip to content

Conversation

@ryo33
Copy link
Member

@ryo33 ryo33 commented Jan 15, 2026

Add criterion benchmarks to measure the overhead of the query-flow system
by comparing:

  1. Query pipeline: Input -> CST -> EureDocument -> JSON via query runtime
  2. Manual pipeline: Direct function calls without query system

Key findings from initial benchmarks:

  • New runtime overhead: ~6.6x for small, ~2x for medium, ~1.16x for large inputs
  • Query cache hit: ~43x faster than manual (660ns vs 28µs for small input)

Benchmarks include:

  • full_pipeline: End-to-end conversion comparison
  • query_reuse: Query execution with pre-built runtime (shows cache benefits)
  • parse_phase: CST parsing performance
  • document_phase: EureDocument construction performance
  • json_phase: JSON conversion performance

Run with: cargo bench -p eure-json --bench conversion

Add criterion benchmarks to measure the overhead of the query-flow system
by comparing:
1. Query pipeline: Input -> CST -> EureDocument -> JSON via query runtime
2. Manual pipeline: Direct function calls without query system

Key findings from initial benchmarks:
- New runtime overhead: ~6.6x for small, ~2x for medium, ~1.16x for large inputs
- Query cache hit: ~43x faster than manual (660ns vs 28µs for small input)

Benchmarks include:
- full_pipeline: End-to-end conversion comparison
- query_reuse: Query execution with pre-built runtime (shows cache benefits)
- parse_phase: CST parsing performance
- document_phase: EureDocument construction performance
- json_phase: JSON conversion performance

Run with: cargo bench -p eure-json --bench conversion
@ryo33 ryo33 merged commit 12932ad into main Jan 15, 2026
1 check passed
@ryo33 ryo33 deleted the claude/add-eure-json-benchmark-URGIj branch January 15, 2026 14:15
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.

3 participants