projects
/
bluesky.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7c854f
)
Include elapsed time in write benchmark
author
Michael Vrable
<mvrable@cs.ucsd.edu>
Thu, 17 Mar 2011 18:38:56 +0000
(11:38 -0700)
committer
Michael Vrable
<mvrable@cs.ucsd.edu>
Thu, 17 Mar 2011 18:38:56 +0000
(11:38 -0700)
microbench/writebench.py
patch
|
blob
|
history
diff --git
a/microbench/writebench.py
b/microbench/writebench.py
index
d210033
..
e2dbf34
100755
(executable)
--- a/
microbench/writebench.py
+++ b/
microbench/writebench.py
@@
-32,7
+32,7
@@
def run_writebench(path, rate):
time.sleep(max(0.0, next_time - now))
last_time = time.time()
latencies.append(write_file(path, count))
- print
latencies[-1]
+ print
"%s\t%s" % (latencies[-1], time.time() - start_time)
count += 1
end_time = time.time()
duration = end_time - start_time