12345678910111213141516171819202122232425262728293031 |
- \documentclass{standalone}
- \usepackage{pgfplots}
- \usepgfplotslibrary{statistics}
- \begin{document}
- \begin{tikzpicture}
- \begin{axis}[title={Simple Stack Add() performance}, % 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_add_tra_10000.add.data};
- \addlegendentry{10000 items}
- \addplot table {\DATAPATH/avg/time/bench_simple_add_tra_100000.add.data};
- \addlegendentry{100000 items}
- \addplot table {\DATAPATH/avg/time/bench_simple_add_tra_1000000.add.data};
- \addlegendentry{1000000 items}
- \end{axis}
- \end{tikzpicture}
- \end{document}
|