Adding benchmark file for encrypted cloud storage.
authorrtrimana <rtrimana@uci.edu>
Fri, 4 May 2018 21:38:04 +0000 (14:38 -0700)
committerrtrimana <rtrimana@uci.edu>
Fri, 4 May 2018 21:38:04 +0000 (14:38 -0700)
PyORAM/examples/es.py

index 25e6b4d384c5dce8d2eb794e85ba0ed5cd260b1e..546a6cf091451c91576939a908daded901045851 100644 (file)
@@ -37,7 +37,7 @@ storage_name = "heap.bin"
 block_size = 2048
 # one block per bucket in the
 # storage heap of height 8
-block_count = 2**(8+1)-1
+block_count = 2**(0+1)-1
 
 def main():
     timer = Foo.Instance()
@@ -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("")