data.sort()
duration = data[-1][0] - data[0][0]
- print "Time span: %d to %d (%d seconds)" % (data[0][0], data[-1][0], duration)
+ #print "Time span: %d to %d (%d seconds)" % (data[0][0], data[-1][0], duration)
start = data[0][0] + 5
end = data[-1][0] - 5
truncated = [d for d in data if start <= d[0] <= end]
- print len(data), len(truncated)
+ #print len(data), len(truncated)
duration = float(end - start + 1)
- print duration
- print "# ops/sec\tbandwidth (MB/s)\tLatency(ms)"
+ #print duration
+ #print "# ops/sec\tbandwidth (MB/s)\tLatency(ms)"
print "%s\t%s\t%s" % (len(truncated) / duration,
len(truncated) / duration * blocksize / 1024.0**2,
sum(d[1] for d in truncated) / len(truncated) / 1000)