cbag_small_tra_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={Concurrent Bag TryRemoveAny() performance}, % 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_cbag_add_tra_100.tra.data};
  17. \addlegendentry{100 items}
  18. \addplot table {\DATAPATH/avg/time/smallbench_cbag_add_tra_1000.tra.data};
  19. \addlegendentry{1000 items}
  20. \addplot table {\DATAPATH/avg/time/smallbench_cbag_add_tra_10000.tra.data};
  21. \addlegendentry{10000 items}
  22. \end{axis}
  23. \end{tikzpicture}
  24. \end{document}