Skip to content

Add CodSpeed performance benchmarks and CI workflow - #12

Open
codspeed[bot] wants to merge 1 commit into
mainfrom
codspeed-wizard-1779341917410
Open

codspeed[bot] wants to merge 1 commit into
mainfrom
codspeed-wizard-1779341917410

Conversation

@codspeed

@codspeed codspeed Bot commented May 21, 2026

Copy link
Copy Markdown

⚡ CodSpeed Performance Benchmarks

This PR integrates CodSpeed for continuous performance tracking of Baker's core operations.

What's included

Benchmark suite (benches/rendering.rs) — 12 benchmarks covering the hot paths:

Category Benchmarks
Template rendering render_simple_template, render_template_with_filters, render_template_with_conditionals, render_large_context
Path rendering render_path_simple, render_path_nested
Expression evaluation execute_expression_simple, execute_expression_complex
Conflict markers conflict_markers_identical, conflict_markers_partial_diff, conflict_markers_large_files
Renderer construction renderer_construction

CI workflow (.github/workflows/codspeed.yml) — Runs benchmarks on every push to main and on pull requests using CodSpeed's simulation mode (deterministic CPU simulation with <1% variance).

README badge — Links to the CodSpeed dashboard for this repository.

How it works

  • Uses the divan benchmarking framework via codspeed-divan-compat for seamless CodSpeed integration
  • Simulation mode provides deterministic, reproducible measurements independent of CI runner load
  • Every PR will automatically get a performance report comparing against the base branch

Local usage

# Build benchmarks
cargo codspeed build

# Run with CodSpeed
codspeed run -- cargo codspeed run

@codecov-commenter

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@codspeed

codspeed Bot commented May 21, 2026

Copy link
Copy Markdown
Author

Congrats! CodSpeed is installed 🎉

🆕 12 new benchmarks were detected.

You will start to see performance impacts in the reports once the benchmarks are run from your default branch.

Detected benchmarks


Open in CodSpeed

@codspeed
codspeed Bot marked this pull request as ready for review May 21, 2026 06:03
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