@@ -106,10 +106,9 @@ fn run_max_mem_benchmark() -> Result<HashMap<String, u64>> {
106
106
107
107
let proc_result = proc. wait_with_output ( ) ?;
108
108
println ! ( "{proc_result:?}" ) ;
109
- results. insert (
110
- name. to_string ( ) ,
111
- utils:: parse_max_mem ( benchmark_file) . unwrap ( ) ,
112
- ) ;
109
+ if let Some ( max_mem) = utils:: parse_max_mem ( benchmark_file) ? {
110
+ results. insert ( name. to_string ( ) , max_mem) ;
111
+ }
113
112
}
114
113
115
114
Ok ( results)
@@ -229,7 +228,7 @@ fn run_exec_time(target_dir: &Path) -> Result<HashMap<String, HashMap<String, f6
229
228
) ;
230
229
}
231
230
232
- utils:: run ( & command. iter ( ) . map ( |s| s. as_ref ( ) ) . collect :: < Vec < _ > > ( ) ) ;
231
+ utils:: run ( & command. iter ( ) . map ( |s| s. as_ref ( ) ) . collect :: < Vec < _ > > ( ) ) ? ;
233
232
234
233
let mut results = HashMap :: < String , HashMap < String , f64 > > :: new ( ) ;
235
234
let hyperfine_results = utils:: read_json ( benchmark_file) ?;
@@ -264,7 +263,7 @@ fn main() -> Result<()> {
264
263
utils:: download_file (
265
264
"https://github.com/lemarier/tauri-test/releases/download/v2.0.0/json_3mb.json" ,
266
265
json_3mb,
267
- ) ;
266
+ ) ? ;
268
267
}
269
268
270
269
println ! ( "Starting tauri benchmark" ) ;
@@ -278,7 +277,7 @@ fn main() -> Result<()> {
278
277
let now = time:: OffsetDateTime :: now_utc ( ) ;
279
278
let mut new_data = utils:: BenchResult {
280
279
created_at : now. format ( & format) . unwrap ( ) ,
281
- sha1 : utils:: run_collect ( & [ "git" , "rev-parse" , "HEAD" ] )
280
+ sha1 : utils:: run_collect ( & [ "git" , "rev-parse" , "HEAD" ] ) ?
282
281
. 0
283
282
. trim ( )
284
283
. to_string ( ) ,
0 commit comments