Skip to content

feat: add token counts to benchmark#99

Merged
stephantul merged 3 commits into
mainfrom
add-tokens-to-benchmark
May 17, 2026
Merged

feat: add token counts to benchmark#99
stephantul merged 3 commits into
mainfrom
add-tokens-to-benchmark

Conversation

@stephantul

Copy link
Copy Markdown
Contributor

This PR adds token counts to the benchmarks and ablations. The token counts are summarized like the other variables. For each repository, we take the mean number of tokens per retrieved query. This is a good proxy for overall cost, we're not very concerned about outliers.

I refactored some of the benchmarking code, since there was a lot of code duplication. Refactoring the other benchmarks (i.e., the external ones) is another task, and is a bit more involved, so I didn't take that on this time.

@stephantul stephantul requested a review from Pringled May 15, 2026 18:56
@codecov

codecov Bot commented May 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Pringled Pringled left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stephantul stephantul merged commit d4c9081 into main May 17, 2026
16 checks passed
@stephantul stephantul deleted the add-tokens-to-benchmark branch May 17, 2026 10:40
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