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 546a6cf..f2931b3 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**(0+1)-1
+block_count = 2**(8+1)-1
 
 def main():
     timer = Foo.Instance()
@@ -109,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)))