From: rtrimana Date: Fri, 4 May 2018 23:14:29 +0000 (-0700) Subject: Fixing timer for encrypted storage benchmark. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=iotcloud.git;a=commitdiff_plain;h=aa03fedd9a8a3eaefcdcda654a7a7193d82c6894;hp=6235838a7002217d5b236c753b3a109aa0daa92b Fixing timer for encrypted storage benchmark. --- diff --git a/PyORAM/examples/es.py b/PyORAM/examples/es.py index 546a6cf..f2931b3 100644 --- a/PyORAM/examples/es.py +++ b/PyORAM/examples/es.py @@ -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)))