Files
pimsys-paper/plots/wallclock_time.tex
2024-03-25 16:37:22 +01:00

41 lines
1.3 KiB
TeX

\begin{tikzpicture}
\pgfplotstableread[col sep=comma]{plots/wallclock_time.csv}\csv
\begin{axis}[
width=10cm,
height=4cm,
ybar=1pt,
bar width = 5pt,
ymin=0,
ymax=1e4,
ymode=log,
ymajorgrids,
ylabel={Runtime [s]},
tick pos=left,
xtick=data,
xticklabels from table={\csv}{system},
enlarge x limits=0.5,
legend style={
at={(current bounding box.south-|current axis.south)},
anchor=north,
legend columns=-1,
draw=none,
/tikz/every even column/.append style={column sep=0.5cm}
},
]
\addplot[fill=_darkblue!90] table [x expr=\coordindex, y={vadd}]{\csv};
\addlegendentry{VADD}
\addplot[fill=_blue!90] table [x expr=\coordindex, y={vmul}]{\csv};
\addlegendentry{VMUL}
\addplot[fill=_green!90] table [x expr=\coordindex, y={haxpy}]{\csv};
\addlegendentry{HAXPY}
\addplot[fill=_orange!90] table [x expr=\coordindex, y={gemv}]{\csv};
\addlegendentry{GEMV}
\addplot[fill=yellow!90] table [x expr=\coordindex, y={dnn}]{\csv};
\addlegendentry{DNN}
\end{axis}
\end{tikzpicture}