Is it possible to benchmark programs in Rust? If yes, how? For example, how would I get execution time of program in seconds?
This answer is outdated! The
time
crate does not offer any advantages overstd::time
in regards to benchmarking. Please see the answers below for up to date information.
You might try timing individual components within the program using the time crate.