Skip to content

Update contributing docs to use cargo bench -p ruff_benchmark#9535

Merged
charliermarsh merged 1 commit intomainfrom
charlie/bench-docs
Jan 15, 2024
Merged

Update contributing docs to use cargo bench -p ruff_benchmark#9535
charliermarsh merged 1 commit intomainfrom
charlie/bench-docs

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

Summary

I found that cargo benchmark lexer didn't work as expected:

❯ cargo benchmark lexer
    Finished bench [optimized] target(s) in 0.08s
     Running benches/formatter.rs (target/release/deps/formatter-4e1d9bf9d3ba529d)
     Running benches/linter.rs (target/release/deps/linter-e449086ddfd8ad8c)

Turns out that cargo bench -p ruff_benchmark is now recommended over cargo benchmark, so updating the docs to reflect that.

@charliermarsh charliermarsh added the documentation Improvements or additions to documentation label Jan 15, 2024
@charliermarsh charliermarsh merged commit b983ab1 into main Jan 15, 2024
@charliermarsh charliermarsh deleted the charlie/bench-docs branch January 15, 2024 19:57
dhruvmanila pushed a commit that referenced this pull request Aug 26, 2024
## Summary

Noticed there was a wrong tip on the Contributing guide, `cargo
benchmark lexer` wouldn't run any benches.
Probably a missed update on #9535 

It may make sense to remove the `cargo benchmark` command from the guide
altogether, but up to the mantainers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants