Browse Source

add the init time

user avadapal 8 months ago
parent
commit
da0291af30
1 changed files with 6 additions and 0 deletions
  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");
+        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()
             .thread_name(|i| format!("thread-prep-{i}"))