% Figure: KEM-level end-to-end speedup (supplementary).
\begin{tikzpicture}
\begin{axis}[
  pqc bar,
  ybar, ymin=0, ymax=9, ytick distance=1,
  bar width=8pt,
  width=\columnwidth, height=5cm,
  symbolic x coords={KeyGen,Encaps,Decaps},
  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/kem_level.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/kem_level.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/kem_level.csv};

\end{axis}
\end{tikzpicture}
