add cleanup command which is executed at the end of each benchmark

This commit is contained in:
Colin Wahl authored and David Peter committed 2019-01-14 20:21:50 +01:00
1 parent e3dfc7f269
commit 5af43cfc7b
4 files changed
+66 -5

No files matched your search

+2
View File
@@ -164,6 +164,8 @@ fn build_hyperfine_options(matches: &ArgMatches) -> Result<HyperfineOptions, Opt
options.preparation_command = matches.value_of("prepare").map(String::from);
options.cleanup_command = matches.value_of("cleanup").map(String::from);
options.show_output = matches.is_present("show-output");
options.output_style = match matches.value_of("style") {