Fixing timer for encrypted storage benchmark.
authorrtrimana <rtrimana@uci.edu>
Fri, 4 May 2018 23:14:29 +0000 (16:14 -0700)
committerrtrimana <rtrimana@uci.edu>
Fri, 4 May 2018 23:14:29 +0000 (16:14 -0700)
PyORAM/examples/es.py

index 546a6cf091451c91576939a908daded901045851..f2931b355decd0c190b08d335e30d825b6fdc605 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_size = 2048
 # one block per bucket in the
 # storage heap of height 8
-block_count = 2**(0+1)-1
+block_count = 2**(8+1)-1
 
 def main():
     timer = Foo.Instance()
 
 def main():
     timer = Foo.Instance()
@@ -109,11 +109,10 @@ def main():
             timer.resetTimer()
             test_count = block_count
             start_time = time.time()
             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]
             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)))
             
               f.write_block(ind, block)
             print("Total Data Transmission: %s" % (MemorySize(f.bytes_sent + f.bytes_received)))