-
Notifications
You must be signed in to change notification settings - Fork 348
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
-Zmiri-disable-isolation slows down tests significantly #1702
Comments
Thanks for reporting this! I have seen the same problem in the past but never investigated it. My current theory is that forwarding environment variables means the test runner does a lot of extra work somewhere, and that causes the slowdown. But it would be good to nail this down. (The short hang with default settings is likely due to the test runner collecting the tests in a map or list of some sort -- in my experience this takes longer the more tests there are, so this is just the "normal" effect of Miri being slow.) |
what if we forward the env variables directly instead of using the intermediate map when isolation is disabled? |
I doubt that will make any difference. |
You're right, I don't know why I thought that this was fault of collecting the environment variables in a hashmap. |
Using the new 8 seconds of the total time is spent in This method just slices a |
768: Avoid -Zmiri-disable-isolation if possible r=taiki-e a=taiki-e It slows down tests: rust-lang/miri#1702 Co-authored-by: Taiki Endo <[email protected]>
Given this result, I wonder if it would make sense to exclude the Meanwhile, |
When running the command
RUSTFLAGS="-Zmiri-disable-isolation" cargo +nightly miri test
on any crate, Miri hangs for about twelve seconds after printingRunning target/...
and before running the actual tests. (Without the flag, Miri hangs for just a second, and without Miri at all there's no hang.)I am running Miri de0800e 2021-01-25 on
x86_64-unknown-linux-gnu
.The text was updated successfully, but these errors were encountered: