Skip to content

Instantly share code, notes, and snippets.

@NicoHinderling
Created September 30, 2015 19:58
Show Gist options
  • Save NicoHinderling/525e0c2b129365f9d271 to your computer and use it in GitHub Desktop.
Save NicoHinderling/525e0c2b129365f9d271 to your computer and use it in GitHub Desktop.
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