Repository navigation
ci: enable CodSpeed benchmarks for directivegames/litellm - #1
Open
codspeed[bot] wants to merge 1 commit into
Open
codspeed[bot] wants to merge 1 commit into
codspeed[bot] wants to merge 1 commit into
Conversation
Author
Hooray! CodSpeed harness just leveled up!The base and head of this comparison were measured with different runner settings, so their benchmark values are not directly comparable. What changed between base and head:
Re-run the base with the same settings to get a valid performance comparison. Comparing |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This fork already includes litellm's CodSpeed harness: 31
pytest-codspeedbenchmarks intests/benchmarks/and the.github/workflows/codspeed.ymlworkflow. The last run of that workflow ondirective/v1.103ran every benchmark, then failed at upload with401 Unauthorizedbecause the fork wasn't registered with CodSpeed yet. Now that the repository is enabled, this PR makes a few small changes so the workflow reports to this fork's dashboard.Changes
.github/workflows/codspeed.yml: movesCodSpeedHQ/actionfrom v4.12.1 to v5.4.2, still pinned by commit hash like the rest of the workflow. It still usesmode: simulationand OIDC authentication (id-token: write). The triggers (directive/**branches, PRs andworkflow_dispatch) are unchanged.README.md: the CodSpeed badge now links toapp.codspeed.io/directivegames/litellminstead of the upstream BerriAI project.What is benchmarked
The benchmarks run in CPU simulation mode and cover:
get_llm_provider), model info and cost-map lookups,cost_per_tokentoken_counteron plain text, chat messages, multi-turn conversations and tool definitionscompletionwith mocked responses (simple, multi-turn, tools, streaming) and response object conversionValidation
I ran the full suite locally with
codspeed run --mode simulation. All 31 benchmarks passed and uploaded to the directivegames/litellm CodSpeed project.Next steps
directive/**set the baseline. Pull requests then get a performance report comment.workflow_dispatch.tests/benchmarks/. They are picked up automatically.