% Figure: hand-SIMD speedup (ref->avx2), three algorithms overlaid, log y-axis.
\begin{tikzpicture}
\begin{axis}[
  pqc bar,
  ybar, ymode=log, ymin=1, ymax=100,
  ytick={1,2,5,10,20,50},
  yticklabels={$1\times$,$2\times$,$5\times$,$10\times$,$20\times$,$50\times$},
  yminorticks=true,
  bar width=5pt,
  width=\textwidth, height=6cm,
  symbolic x coords={INVNTT,basemul,frommsg,NTT,iDec,iEnc,iKeypair,gena,noise},
  xticklabels={INVNTT,basemul,frommsg,NTT,iDec,iEnc,iKeypair,gen\_a,noise},
  ylabel={Speedup \varref{} $\to$ \varavx{} ($\times$)},
  legend entries={\mlkemk{512}, \mlkemk{768}, \mlkemk{1024}},
  legend style={at={(0.01,0.99)}, anchor=north west, font=\small},
]

\addplot+[fill=colM512, draw=colM512!70!black, opacity=0.88,
          error bars/.cd, y dir=both, y explicit]
  table[x=op, y=m512_sp, y error plus=m512_ehi, y error minus=m512_elo,
        col sep=comma]{figures/data/hand_simd.csv};

\addplot+[fill=colM768, draw=colM768!70!black, opacity=0.88,
          error bars/.cd, y dir=both, y explicit]
  table[x=op, y=m768_sp, y error plus=m768_ehi, y error minus=m768_elo,
        col sep=comma]{figures/data/hand_simd.csv};

\addplot+[fill=colM1024, draw=colM1024!70!black, opacity=0.88,
          error bars/.cd, y dir=both, y explicit]
  table[x=op, y=m1024_sp, y error plus=m1024_ehi, y error minus=m1024_elo,
        col sep=comma]{figures/data/hand_simd.csv};

\end{axis}
\end{tikzpicture}
