Created
January 23, 2015 22:41
-
-
Save staroselskii/7e5fba258ae1d2951e2c 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
import sys | |
misses = [] | |
loops = [] | |
with open(sys.argv[1]) as f: | |
for line in f: | |
miss, loop = line.split()[1:] | |
misses.append(float(miss.split('/')[0])) | |
loops.append(float(loop)) | |
time_mean = sum(loops)/float(len(loops)) | |
miss_mean = sum(misses)/float(len(misses)) | |
print("Mean(time): {} Max(time): {} Mean(misses): {} Max(misses): {}".format(time_mean, max(loops), miss_mean, max(misses))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment