Skip to content

feat(benchmark): add comprehensive benchmark system with metrics - #22

Merged
luigi-agosti merged 4 commits into
mainfrom
chore/testing-and-benchmark
Apr 12, 2026
Merged

feat(benchmark): add comprehensive benchmark system with metrics#22
luigi-agosti merged 4 commits into
mainfrom
chore/testing-and-benchmark

Conversation

@luigi-agosti

@luigi-agosti luigi-agosti commented Apr 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add benchmark infrastructure to measure semantic matching quality
  • Create corpus-based benchmarks with MRR, P@1, P@3, and latency metrics
  • Add recovery scenarios (8 cases) testing DOM change handling
  • Add error classification test cases (12 cases)
  • Implement composite scoring with weighted components
  • Fix E2E tests to work in local development (not just containers)
  • Move testdata to tests/e2e/assets for better organization

Benchmark Results

Phase Metric Score
Find P@1 0.88
Find MRR 0.90
Recovery Rate 87.5%
Classification Accuracy 100%
Composite Grade B+ (0.90)

Test plan

  • All Go tests pass (go test ./...)
  • All E2E tests pass (146 tests)
  • Full benchmark runs successfully

Adds benchmark infrastructure to measure semantic matching quality:

- Full benchmark combining Find, Recovery, and Classification phases
- Corpus-based benchmark with MRR, P@1, P@3, and latency metrics
- 10 real-world corpus examples (94 queries total)
- 8 recovery scenarios testing DOM change handling
- 12 error classification test cases
- Composite scoring with weighted components (B+ grade: 0.90)
E2E tests previously used absolute container paths (/e2e, /testdata).
Now they compute paths relative to script location, supporting both
container and local development environments.
@luigi-agosti
luigi-agosti force-pushed the chore/testing-and-benchmark branch from 014b4b7 to 35b343b Compare April 12, 2026 15:55
@luigi-agosti
luigi-agosti merged commit 84546f8 into main Apr 12, 2026
7 checks passed
luigi-agosti added a commit that referenced this pull request Apr 24, 2026
feat(benchmark): add comprehensive benchmark system with metrics
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.

1 participant