Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add a script to benchmark build times #2406

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KyleSiefring
Copy link
Collaborator

No description provided.

@KyleSiefring
Copy link
Collaborator Author

KyleSiefring commented Jun 18, 2020

Actually, I'm not sure my touch command is working...
EDIT: nvm, it works

@coveralls
Copy link
Collaborator

Coverage Status

Coverage decreased (-1.5%) to 80.331% when pulling 3b704fb on KyleSiefring:bench_build_script into c944c52 on xiph:master.

time cargo build -q

echo;echo;
echo dev profile: touch src/lib.rs
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It shouldn't do much.
If you add from the end a pub const FOO: usize = 42; (and then remove it after the build completes) does it have different results?

@lu-zero
Copy link
Collaborator

lu-zero commented Jun 18, 2020

cargo +nightly rustc -- -Z self-profile might be of use.

See here for more information

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.

3 participants