In [1]:
%pylab inline
In [2]:
import pandas as pd
In [3]:
import matplotlib
matplotlib.style.use('ggplot')
In [4]:
from StringIO import StringIO
In [5]:
!julia -e 'versioninfo()'
In [6]:
!git show -s HEAD
In [7]:
!git status
In [8]:
bench = !julia benchmark.jl
bench = "\n".join(bench)
bench = pd.read_table(StringIO(bench))
In [9]:
bench
Out[9]:
In [10]:
figsize(12, 8)
In [11]:
bench.plot(x="size",
title="Elapsed time per operation",
logx=True, logy=True,
linestyle="--", marker="o")
ylabel("elapsed time [s]")
Out[11]:
In [12]:
bench.plot(x="size", y="construction", linestyle="--", marker="o")
Out[12]:
In [13]:
bench.plot(x="size", y=["minimum", "maximum"], linestyle="--", marker="o")
Out[13]:
In [14]:
bench.plot(x="size", y="push!", linestyle="--", marker="o")
Out[14]:
In [15]:
bench.plot(x="size", y="pop!", linestyle="--", marker="o")
Out[15]:
In [16]:
bench.plot(x="size", y=["popmin!", "popmax!"], linestyle="--", marker="o")
Out[16]: