Add more benchmark results
[bluesky.git] / parsetrace / latency-graph.py
1 #!/usr/bin/python
2
3 import json, sys
4
5 for f in sys.argv[1:]:
6     stats = json.load(open(f))
7     addr = ''
8     for s in stats:
9         try:
10             addr = s['addr']
11         except:
12             pass
13
14         try:
15             size = s['bytes']
16             lat1 = s['start_latency']
17             lat2 = s['finish_latency']
18             print "%d\t%f\t%f\t%s" % (size, lat1, lat2, addr)
19         except:
20             pass