}
SYNREAD_DURATION=60
-for BLUESKY_CACHE_SIZE in $((256 * 1024)) $((8192 * 1024 * 1024)); do
+for BLUESKY_CACHE_SIZE in $((256 * 1024)) $((8 * 1024 * 1024)); do
run_synbench "syntest-$((BLUESKY_CACHE_SIZE / 1024))"
done
-
-BLUESKY_CACHE_SIZE=$((256 * 1024))
return data
if __name__ == '__main__':
+ blocksize = int(sys.argv[1])
data = []
- for f in sys.argv[1:]:
+ for f in sys.argv[2:]:
data += load_log(open(f))
data.sort()
duration = float(end - start + 1)
print duration
print "Ops per second:", len(truncated) / duration
- print "Bandwidth:", len(truncated) / duration * 1048576
- print "Average latency:", sum(d[1] for d in truncated) / len(truncated)
+ print "Bandwidth (MB/s):", len(truncated) / duration * blocksize / 1024.0**2
+ print "Average latency (ms):", sum(d[1] for d in truncated) / len(truncated) / 1000