This should be applicable only to parent or orphan benches. Ideally, we can look at the module documentation, or at the documentation specific for that benchmark. Ideally, the benchmark description should be collapsed via a button and the renderer of the documentation should appropriately.
My first guess is to use rustdoc --output-format json and then look for #[bench] functions, but probably it's painful and overkill as it will build docs for the whole crate and then search for docs of benched function. Not to sure neither how to recognize benchmark-module documentation
This should be applicable only to parent or orphan benches. Ideally, we can look at the module documentation, or at the documentation specific for that benchmark. Ideally, the benchmark description should be collapsed via a button and the renderer of the documentation should appropriately.
My first guess is to use
rustdoc --output-format jsonand then look for #[bench] functions, but probably it's painful and overkill as it will build docs for the whole crate and then search for docs of benched function. Not to sure neither how to recognize benchmark-module documentation