From: rtrimana Date: Fri, 4 May 2018 21:38:04 +0000 (-0700) Subject: Adding benchmark file for encrypted cloud storage. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=iotcloud.git;a=commitdiff_plain;h=6235838a7002217d5b236c753b3a109aa0daa92b Adding benchmark file for encrypted cloud storage. --- diff --git a/PyORAM/examples/es.py b/PyORAM/examples/es.py index 25e6b4d..546a6cf 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**(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("")