In [9]:
%matplotlib inline
import matplotlib
import seaborn as sns
matplotlib.rcParams['savefig.dpi'] = 2 * matplotlib.rcParams['savefig.dpi']
from timing import fetch_results
import pandas as pd
In [19]:
results = fetch_results('http://localhost:8080')
In [20]:
(pd.DataFrame(results)
.set_index('route')
['length']
.plot(kind='barh'))
Out[20]:
In [21]:
(pd.DataFrame(results)
.set_index('route')
[['clock', 'request_time', 'time']]
.plot(kind='barh'))
Out[21]: