Fixing timer for encrypted storage benchmark.
[iotcloud.git] / PyORAM / examples / es.py
index 25e6b4d..f2931b3 100644 (file)
@@ -72,8 +72,9 @@ def main():
                                          storage_type='sftp',
                                          sshclient=ssh,
                                          ignore_existing=True) as f:
-            print("Total Setup Time: %2.f s"
-                  % (time.time()-setup_start))
+            #print("Total Setup Time: %2.f s"
+            #      % (time.time()-setup_start))
+            print("Test Setup Time: " + str(time.time() - setup_start))
             print("Total Data Transmission: %s"
                   % (MemorySize(f.bytes_sent + f.bytes_received)))
             print("")
@@ -108,11 +109,10 @@ def main():
             timer.resetTimer()
             test_count = block_count
             start_time = time.time()
-            
+            ind = block_count
+
             for t in tqdm.tqdm(list(range(test_count)), desc="Running I/O Performance Test"):
               ind = keys[t]
-              # ind = t
-              s = "a" + str(ind)                
               f.write_block(ind, block)
             print("Total Data Transmission: %s" % (MemorySize(f.bytes_sent + f.bytes_received)))