|
34 | 34 | \end{axis} |
35 | 35 | \end{tikzpicture} |
36 | 36 | % |
37 | | - \begin{tikzpicture}[scale=0.5] |
38 | | - \begin{axis}[ |
39 | | - title=\textbf{Matrix Operation}, |
40 | | - xlabel=Number of CPUs, |
41 | | - ylabel=Runtime (ms), |
42 | | - legend pos=north west, |
| 37 | + %\begin{tikzpicture}[scale=0.5] |
| 38 | + % \begin{axis}[ |
| 39 | + % title=\textbf{Matrix Operation}, |
| 40 | + % xlabel=Number of CPUs, |
| 41 | + % ylabel=Runtime (ms), |
| 42 | + % legend pos=north west, |
| 43 | + % ] |
| 44 | + % \addplot+ [mark=*] table[x=X,y=Taskflow,col sep=space]{Fig/micro_benchmark/matrix_operation_speedup.csv}; |
| 45 | + % \addplot+ [mark=square] table[x=X,y=TBB,col sep=space]{Fig/micro_benchmark/matrix_operation_speedup.csv}; |
| 46 | + % \legend{Cpp-Taskflow, TBB} |
| 47 | + % \end{axis} |
| 48 | + %\end{tikzpicture} |
| 49 | + %% |
| 50 | + %\begin{tikzpicture}[scale=0.5] |
| 51 | + % \begin{axis}[ |
| 52 | + % title=\textbf{Graph Traversal}, |
| 53 | + % xlabel=Number of CPUs, |
| 54 | + % ylabel=Runtime (ms), |
| 55 | + % legend pos=north west, |
| 56 | + % ] |
| 57 | + % \addplot+ [mark=*] table[x=X,y=Taskflow,col sep=space]{Fig/micro_benchmark/graph_algorithm_speedup.csv}; |
| 58 | + % \addplot+ [mark=square] table[x=X,y=TBB,col sep=space]{Fig/micro_benchmark/graph_algorithm_speedup.csv}; |
| 59 | + % \legend{Cpp-Taskflow, TBB} |
| 60 | + % \end{axis} |
| 61 | + %\end{tikzpicture} |
| 62 | + \begin{tikzpicture}[scale=0.51] |
| 63 | +\begin{axis}[ |
| 64 | + symbolic x coords={Cpp-Taskflow, OpenMP, TBB, Sequential}, |
| 65 | + xtick=data, |
| 66 | + title=\textbf{Matrix Operation}, |
| 67 | + xlabel=Library, |
| 68 | + ylabel=Lines of Code, |
43 | 69 | ] |
44 | | - \addplot+ [mark=*] table[x=X,y=Taskflow,col sep=space]{Fig/micro_benchmark/matrix_operation_speedup.csv}; |
45 | | - \addplot+ [mark=square] table[x=X,y=TBB,col sep=space]{Fig/micro_benchmark/matrix_operation_speedup.csv}; |
46 | | - \legend{Cpp-Taskflow, TBB} |
47 | | - \end{axis} |
48 | | - \end{tikzpicture} |
49 | | - % |
50 | | - \begin{tikzpicture}[scale=0.5] |
51 | | - \begin{axis}[ |
52 | | - title=\textbf{Graph Traversal}, |
53 | | - xlabel=Number of CPUs, |
54 | | - ylabel=Runtime (ms), |
55 | | - legend pos=north west, |
| 70 | + \addplot[ybar,fill=blue] coordinates { |
| 71 | + (Cpp-Taskflow, 30) |
| 72 | + (TBB, 38) |
| 73 | + (OpenMP, 64) |
| 74 | + (Sequential, 14) |
| 75 | + }; |
| 76 | +\end{axis} |
| 77 | +\end{tikzpicture} |
| 78 | + \begin{tikzpicture}[scale=0.51] |
| 79 | +\begin{axis}[ |
| 80 | + symbolic x coords={Cpp-Taskflow, OpenMP, TBB, Sequential}, |
| 81 | + xtick=data, |
| 82 | + title=\textbf{Graph Traversal}, |
| 83 | + xlabel=Library, |
| 84 | + ylabel=Lines of Code, |
56 | 85 | ] |
57 | | - \addplot+ [mark=*] table[x=X,y=Taskflow,col sep=space]{Fig/micro_benchmark/graph_algorithm_speedup.csv}; |
58 | | - \addplot+ [mark=square] table[x=X,y=TBB,col sep=space]{Fig/micro_benchmark/graph_algorithm_speedup.csv}; |
59 | | - \legend{Cpp-Taskflow, TBB} |
60 | | - \end{axis} |
61 | | - \end{tikzpicture} |
| 86 | + \addplot[ybar,fill=blue] coordinates { |
| 87 | + (Cpp-Taskflow, 40) |
| 88 | + (TBB, 59) |
| 89 | + (OpenMP, 213) |
| 90 | + (Sequential, 14) |
| 91 | + }; |
| 92 | +\end{axis} |
| 93 | +\end{tikzpicture} |
62 | 94 | %\caption{Performance comparisons between Cpp-Taskflow, TBB, and OpenMP on two micro-benchmarks.} |
63 | 95 | \label{fig::micro_benchmark} |
64 | 96 | \end{figure} |
|
0 commit comments