simple_1_prod_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 1 Producer, N - 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/bench_simple_1_prod_10000.data};
  17. \addlegendentry{10000 items}
  18. \addplot table {\DATAPATH/avg/time/bench_simple_1_prod_100000.data};
  19. \addlegendentry{100000 items}
  20. \addplot table {\DATAPATH/avg/time/bench_simple_1_prod_1000000.data};
  21. \addlegendentry{1000000 items}
  22. \end{axis}
  23. \end{tikzpicture}
  24. \end{document}