Skip to content

How can I get the compilation time of each project in compile-benchmarks? #1911

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
cicilzx opened this issue May 25, 2024 · 1 comment
Open

Comments

@cicilzx
Copy link

cicilzx commented May 25, 2024

I have installed everything, and after I run the following command:

./target/release/collector bench_local /local/home/zixliu/.cargo/bin/rustc
./target/release/site results.db

I cannot find anything on the website. Why? There is an error message: error comparing commits: could not find start commit for bound None, but I don't want to check the comparing result. There is no data of graph in the graphs page.

I'd like to see the compile time of different crates in the benchmark dataset, What should I do?

@Kobzol
Copy link
Contributor

Kobzol commented May 25, 2024

Hi, you need to compare two versions. Usually you would do it like this:

bench_local <rustc> --id <id1>
bench_local <rustc> --id <id2>

and then enter <id1> and <id2> into the before/after commit fields in the compare page.

(Yes, I do realize that this is not user friendly, and that it should be easier and we should also have basic CLI output :) Hopefully it will improve in the future.).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants