瀏覽代碼

add the init time

user avadapal 9 月之前
父節點
當前提交
da0291af30
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      oram/examples/bench_doram.rs

+ 6 - 0
oram/examples/bench_doram.rs

@@ -217,7 +217,13 @@
             ]
             ]
         };
         };
 
 
+        let t_start_init = Instant::now();
         doram.init(&mut comm, &db_share).expect("init failed");
         doram.init(&mut comm, &db_share).expect("init failed");
+        let d_accesses = Instant::now() - t_start_init;
+        println!(
+          "InitTime: {:.2} ms",
+         d_accesses.as_secs_f64() * 1000.0
+        );
 
 
         let thread_pool_prep = rayon::ThreadPoolBuilder::new()
         let thread_pool_prep = rayon::ThreadPoolBuilder::new()
             .thread_name(|i| format!("thread-prep-{i}"))
             .thread_name(|i| format!("thread-prep-{i}"))