#5013·miri

`cargo miri nextest run` spends a lot of time rebuilding the test crate

Author: RalfJungCreated May 9, 2026Updated Aug 27, 2026
LabelsC-enhancementA-uxI-slow

I tried nextest + miri on the standard library test suite, and while it works, it is atrociously slow: on libcore, even the tiniest tests take 40s, because that's how long Miri takes before it even starts running the actual test.

I don't know what libtest does in terms of pre-test setup, but maybe there's a way to speed it up for the specific invocation nextest is using? @saethlin you mentioned having looked into this in the past -- any idea what the remaining bottleneck is?