From: Michael Vrable Date: Thu, 17 Mar 2011 18:38:56 +0000 (-0700) Subject: Include elapsed time in write benchmark X-Git-Url: http://git.vrable.net/?p=bluesky.git;a=commitdiff_plain;h=75210af5dfa9ce9f2cca124777f2555dea5d106a Include elapsed time in write benchmark --- diff --git a/microbench/writebench.py b/microbench/writebench.py index d210033..e2dbf34 100755 --- 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