Open
Description
Should x.py bench
emit a message if settings that are bad for performance are enabled? I think my configuration was confusing me quite a bit in #90414 -- specifically rust.debug-info-std
(which IIUC impacts which variables get spilled to the stack) and rust.incremental
(which impacts codegen units). There are definitely others relevant here.
Note that I do think there are reasons that you may want to have these on when running the benchmark, so it should be an unobtrusive warning or message. Alternatively, it could be configured in some way automatically, if not overridden, similar to [proflie.bench]
in cargo.
Discussion carried over from that PR.