Created
March 25, 2014 14:07
-
-
Save jdswinbank/9762582 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 numpy | |
from matplotlib import pyplot | |
with open('1sub-noepoll-notmpfs.log', 'r') as f: | |
noepoll_notmpfs = numpy.array([float(x) for x in f.readlines()]) | |
with open('1sub-epoll-notmpfs.log', 'r') as f: | |
epoll_notmpfs = numpy.array([float(x) for x in f.readlines()]) | |
with open('1sub-epoll-tmpfs.log', 'r') as f: | |
epoll_tmpfs = numpy.array([float(x) for x in f.readlines()]) | |
fig, (ax0, ax1, ax2) = pyplot.subplots(nrows=3, sharex="all") | |
num_bins = 100 | |
pyplot.figure(1) | |
pyplot.subplot(3,1,1) | |
n, bins, patches = pyplot.hist(noepoll_notmpfs, num_bins, range=(0, 0.2)) | |
pyplot.subplot(3,1,2) | |
n, bins, patches = pyplot.hist(epoll_notmpfs, num_bins, range=(0, 0.2)) | |
pyplot.subplot(3,1,3) | |
n, bins, patches = pyplot.hist(epoll_tmpfs, num_bins, range=(0, 0.2)) | |
pyplot.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment