12345678910111213141516171819202122232425262728293031 |
- \documentclass{standalone}
- \usepackage{pgfplots}
- \usepgfplotslibrary{statistics}
- \begin{document}
- \begin{tikzpicture}
- \begin{axis}[title={Simple Stack N - 1 Producer, 1 Consumer}, % Title of the graph
- xtick={2,4,8,16,32,64,128,256}, % The ticks on the x-axis
- xlabel={number of threads}, % Label of the x-axis
- ylabel={time in [ms]}, % Label of the y-axis
- legend style={
- at={(1.05,0.95)}, % Position of the legend anchor
- anchor=north west % The legend anchor
- }]
- % Each graph is added via \addplot and a .data file, and
- % add a legend entry for the previous graph.
- \addplot table {\DATAPATH/avg/time/smallbench_simple_1_cons_100.data};
- \addlegendentry{100 items}
- \addplot table {\DATAPATH/avg/time/smallbench_simple_1_cons_1000.data};
- \addlegendentry{1000 items}
- \addplot table {\DATAPATH/avg/time/smallbench_simple_1_cons_10000.data};
- \addlegendentry{10000 items}
- \end{axis}
- \end{tikzpicture}
- \end{document}
|