Skip to content

Commit 4df9c8c

Browse files
modified plot
1 parent 71201c0 commit 4df9c8c

11 files changed

Lines changed: 2330 additions & 4648 deletions

File tree

-12 KB
Binary file not shown.
-12 KB
Binary file not shown.

image/plot/Fig/micro_benchmark/micro_benchmark.tex

Lines changed: 55 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,63 @@
3434
\end{axis}
3535
\end{tikzpicture}
3636
%
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,
4369
]
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,
5685
]
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}
6294
%\caption{Performance comparisons between Cpp-Taskflow, TBB, and OpenMP on two micro-benchmarks.}
6395
\label{fig::micro_benchmark}
6496
\end{figure}

image/plot/pdf2eps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ pdfcrop $1.pdf $1.pdf
33
pdftops $1.pdf
44
ps2eps $1.ps
55

6-
# convert -density 1000 $1.pdf $1.jpg
6+
# convert -density 1000 -quality 100 $1.pdf $1.jpg

image/plot/plot.aux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
\relax
22
\providecommand*\caption@xref[2]{\@setref\relax\@undefined{#1}}
3-
\newlabel{fig::micro_benchmark}{{\caption@xref {fig::micro_benchmark}{ on input line 63}}{1}}
3+
\newlabel{fig::micro_benchmark}{{\caption@xref {fig::micro_benchmark}{ on input line 95}}{1}}

image/plot/plot.dvi

-74 KB
Binary file not shown.

image/plot/plot.eps

Lines changed: 2266 additions & 4608 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

image/plot/plot.jpg

-760 KB
Loading

image/plot/plot.log

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) (preloaded format=latex 2018.10.12) 18 DEC 2018 12:34
1+
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) (preloaded format=latex 2018.10.12) 18 DEC 2018 15:16
22
entering extended mode
33
restricted \write18 enabled.
44
%&-line parsing enabled.
@@ -738,24 +738,16 @@ PGFPlots: reading {Fig/micro_benchmark/matrix_operation.csv}
738738
PGFPlots: reading {Fig/micro_benchmark/graph_algorithm.csv}
739739
PGFPlots: reading {Fig/micro_benchmark/graph_algorithm.csv}
740740
PGFPlots: reading {Fig/micro_benchmark/graph_algorithm.csv}
741-
PGFPlots: reading {Fig/micro_benchmark/matrix_operation_speedup.csv}
742-
PGFPlots: reading {Fig/micro_benchmark/matrix_operation_speedup.csv}
743-
PGFPlots: reading {Fig/micro_benchmark/graph_algorithm_speedup.csv}
744-
PGFPlots: reading {Fig/micro_benchmark/graph_algorithm_speedup.csv}
745741
) [1
746742

747-
] (./plot.aux)
748-
749-
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
750-
751-
)
743+
] (./plot.aux) )
752744
Here is how much of TeX's memory you used:
753-
25296 strings out of 492983
754-
631546 string characters out of 6134921
755-
924413 words of memory out of 5000000
756-
28460 multiletter control sequences out of 15000+600000
745+
25295 strings out of 492983
746+
631660 string characters out of 6134921
747+
838240 words of memory out of 5000000
748+
28463 multiletter control sequences out of 15000+600000
757749
6676 words of font info for 25 fonts, out of 8000000 for 9000
758750
1141 hyphenation exceptions out of 8191
759751
62i,17n,103p,782b,2352s stack positions out of 5000i,500n,10000p,200000b,80000s
760752

761-
Output written on plot.dvi (1 page, 151900 bytes).
753+
Output written on plot.dvi (1 page, 76092 bytes).

image/plot/plot.pdf

-12.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)