12345678910111213141516171819202122232425262728293031 |
- \documentclass{standalone}
- \usepackage{pgfplots}
- \usepgfplotslibrary{statistics}
- \begin{document}
- \begin{tikzpicture}
- \begin{axis}[title={Simple Stack N/2 Producer, N/2 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/bench_simple_prod_cons_10000.data};
- \addlegendentry{10000 items}
- \addplot table {\DATAPATH/avg/time/bench_simple_prod_cons_100000.data};
- \addlegendentry{100000 items}
- \addplot table {\DATAPATH/avg/time/bench_simple_prod_cons_1000000.data};
- \addlegendentry{1000000 items}
- \end{axis}
- \end{tikzpicture}
- \end{document}
|