Skip to content

Conversation

@omarabid
Copy link
Contributor

Sets up Criterion.rs for benchmarking and adds an initial benchmark for the parse_codeowners function.

Includes:

  • Criterion.rs dependency in Cargo.toml.
  • Benchmark configuration in Cargo.toml.
  • benches/parser_bench.rs with benchmarks for parse_codeowners, including parsing of various CODEOWNERS line formats.
  • A GitHub Actions workflow (.github/workflows/benchmarks.yml) to run cargo bench on pushes to main and upload the HTML report as an artifact.

Note: I wrote the benchmarks but couldn't run them in the development environment due to a specific version requirement for Rust. The setup assumes a standard Rust environment where cargo bench can compile and execute the benchmarks.

Sets up Criterion.rs for benchmarking and adds an initial benchmark for the `parse_codeowners` function.

Includes:
- Criterion.rs dependency in `Cargo.toml`.
- Benchmark configuration in `Cargo.toml`.
- `benches/parser_bench.rs` with benchmarks for `parse_codeowners`, including parsing of various CODEOWNERS line formats.
- A GitHub Actions workflow (`.github/workflows/benchmarks.yml`) to run `cargo bench` on pushes to main and upload the HTML report as an artifact.

Note: I wrote the benchmarks but couldn't run them in the development environment due to a specific version requirement for Rust. The setup assumes a standard Rust environment where `cargo bench` can compile and execute the benchmarks.
@omarabid omarabid closed this Jan 9, 2026
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