Include elapsed time in write benchmark
authorMichael Vrable <mvrable@cs.ucsd.edu>
Thu, 17 Mar 2011 18:38:56 +0000 (11:38 -0700)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Thu, 17 Mar 2011 18:38:56 +0000 (11:38 -0700)
microbench/writebench.py

index d210033..e2dbf34 100755 (executable)
@@ -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