projects
/
iotcloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixing timer for encrypted storage benchmark.
[iotcloud.git]
/
PyORAM
/
examples
/
es.py
diff --git
a/PyORAM/examples/es.py
b/PyORAM/examples/es.py
index
546a6cf
..
f2931b3
100644
(file)
--- 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_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()
def main():
timer = Foo.Instance()
@@
-109,11
+109,10
@@
def main():
timer.resetTimer()
test_count = block_count
start_time = time.time()
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]
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)))
f.write_block(ind, block)
print("Total Data Transmission: %s" % (MemorySize(f.bytes_sent + f.bytes_received)))