pub fn save_result_to_file<P: AsRef<Path>>( result: &BenchResult, path: P, ) -> Result<(), Box<dyn Error>>