/// Get the duration of ReCGen-build 1 run from different input samples /// /// Build the example /// cargo build --example bench_duration --release fn main() { let db_fp_string = recgen::utils::get_db_filepath(); let input_dir = recgen::utils::get_inputfile_dir(); for idx in 0..5 { let start = std::time::Instant::now(); let input_filepath = std::path::PathBuf::from(&input_dir).join(format!("sample{}.mol", idx + 1)); recgen::build_library_original(db_fp_string.as_str(), input_filepath.to_str().unwrap()); let duration = start.elapsed(); println!("Sample {}, time spent {} seconds", idx + 1, duration.as_secs_f32()); } }