X-Git-Url: http://plrg.eecs.uci.edu/git/?p=iotcloud.git;a=blobdiff_plain;f=PyORAM%2Fexamples%2Fes.py;h=f2931b355decd0c190b08d335e30d825b6fdc605;hp=546a6cf091451c91576939a908daded901045851;hb=aa03fedd9a8a3eaefcdcda654a7a7193d82c6894;hpb=6235838a7002217d5b236c753b3a109aa0daa92b;ds=sidebyside 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)))