The best way to benchmark compilation time of derive macros

While I see many crates that intended to benchmarking the code that run, I can't find any related to benchmarking the compilation time. Is there any good library for that?

This question is related to that GitHub comment.

1 Like

There's a flag to log compile times of Cargo projects:

and to profile compilation time of a single crate there's -Z time-passes rustc flag.


Thanks! I think that it is what I need

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.