3 from itertools
import izip
5 fn1
, fn2
= sys
.argv
[1:3]
7 #use on logs created by
9 #make TEST_OPTIONS='timer=1 reload=dumpfiles/xx.dump' test
11 # ideally keeping the camera in position
16 print "%s %s" % (fn1
, fn2
)
17 for l1
, l2
in izip(f1
, f2
):
18 s1
, t1
= l1
.strip().split()
19 s2
, t2
= l2
.strip().split()
20 ratio
= float(t1
) / float(t2
)
22 fmt
= "%s %6s %2.3f >%6s"
24 fmt
= "%s %6s < %2.3f %6s"
26 fmt
= "%s %6s %2.3f %6s"
28 print fmt
% (s1
, t1
, ratio
, t2
)