Created
September 30, 2015 19:58
-
-
Save NicoHinderling/525e0c2b129365f9d271 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file = open('results_getsections_dl.txt', 'r') | |
date = file.readline() | |
lazyStart = 0 | |
lazyFinish = 0 | |
for x in range(50): | |
strIntervals = file.readline() | |
intervals = [int(s) for s in strIntervals.split() if s.isdigit()] | |
lazyStart = lazyStart + intervals[0] | |
lazyFinish = lazyFinish + intervals[1] | |
lazyStartAvg = lazyStart/50 | |
lazyFinishAvg = lazyFinish/50 | |
# And for "RTLD_NOW"! | |
nowStart = 0 | |
nowFinish = 0 | |
for x in range(50): | |
strIntervals = file.readline() | |
intervals = [int(s) for s in strIntervals.split() if s.isdigit()] | |
nowStart = nowStart + intervals[0] | |
nowFinish = nowFinish + intervals[1] | |
nowStartAvg = nowStart/50 | |
nowFinishAvg = nowFinish/50 | |
print lazyStartAvg | |
print lazyFinishAvg | |
print "----" | |
print nowStartAvg | |
print nowFinishAvg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment