Skip to content

ci: enable CodSpeed benchmarks for directivegames/litellm - #1

Open
codspeed[bot] wants to merge 1 commit into
directive/v1.103from
codspeed/setup-ci
Open

codspeed[bot] wants to merge 1 commit into
directive/v1.103from
codspeed/setup-ci

Conversation

@codspeed

@codspeed codspeed Bot commented Oct 12, 2026

Copy link
Copy Markdown

Summary

This fork already includes litellm's CodSpeed harness: 31 pytest-codspeed benchmarks in tests/benchmarks/ and the .github/workflows/codspeed.yml workflow. The last run of that workflow on directive/v1.103 ran every benchmark, then failed at upload with 401 Unauthorized because 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: moves CodSpeedHQ/action from v4.12.1 to v5.4.2, still pinned by commit hash like the rest of the workflow. It still uses mode: simulation and OIDC authentication (id-token: write). The triggers (directive/** branches, PRs and workflow_dispatch) are unchanged.
  • README.md: the CodSpeed badge now links to app.codspeed.io/directivegames/litellm instead of the upstream BerriAI project.

What is benchmarked

The benchmarks run in CPU simulation mode and cover:

  • Provider resolution (get_llm_provider), model info and cost-map lookups, cost_per_token
  • token_counter on plain text, chat messages, multi-turn conversations and tool definitions
  • End-to-end completion with mocked responses (simple, multi-turn, tools, streaming) and response object conversion
  • MCP tool translation and server prefix handling
  • A2A message conversion and text extraction

Validation

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

  • Once this is merged, pushes to directive/** set the baseline. Pull requests then get a performance report comment.
  • To backfill history, trigger the workflow manually with workflow_dispatch.
  • New benchmarks can go in tests/benchmarks/. They are picked up automatically.

@codspeed

codspeed Bot commented Oct 12, 2026

Copy link
Copy Markdown
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 codspeed/setup-ci (3e82a8f) with directive/v1.103 (2422852)

Open in CodSpeed

@codspeed
codspeed Bot requested a review from haowang1013 October 12, 2026 05:52
@codspeed
codspeed Bot marked this pull request as ready for review October 12, 2026 05:52

This branch has not been deployed

No deployments
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