From 6235838a7002217d5b236c753b3a109aa0daa92b Mon Sep 17 00:00:00 2001 From: rtrimana Date: Fri, 4 May 2018 14:38:04 -0700 Subject: [PATCH] Adding benchmark file for encrypted cloud storage. --- PyORAM/examples/es.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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("") -- 2.34.1