123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- \documentclass{standalone}
- \usepackage{pgfplots}
- \usepgfplotslibrary{statistics}
- \begin{document}
- \begin{tikzpicture}
- \begin{axis}[title={Concurrent Bag 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_cbag_1_cons_100.data};
- \addlegendentry{100 items}
- \addplot table {\DATAPATH/avg/time/smallbench_cbag_1_cons_1000.data};
- \addlegendentry{1000 items}
- \addplot table {\DATAPATH/avg/time/smallbench_cbag_1_cons_10000.data};
- \addlegendentry{10000 items}
- \end{axis}
- \end{tikzpicture}
- \begin{tikzpicture}
- \begin{axis}[title={Concurrent Bag 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={throughput in [operations/s]}, % 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/throughput/smallbench_cbag_1_cons_100.data};
- \addlegendentry{100 items}
- \addplot table {\DATAPATH/avg/throughput/smallbench_cbag_1_cons_1000.data};
- \addlegendentry{1000 items}
- \addplot table {\DATAPATH/avg/throughput/smallbench_cbag_1_cons_10000.data};
- \addlegendentry{10000 items}
- \end{axis}
- \end{tikzpicture}
- \end{document}
|