From 75210af5dfa9ce9f2cca124777f2555dea5d106a Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Thu, 17 Mar 2011 11:38:56 -0700 Subject: [PATCH] Include elapsed time in write benchmark --- microbench/writebench.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1