simple_small_1_cons_avg_plot.tex 1.1 KB

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