答案1
使用贝塞尔曲线。
\documentclass[tikz,border=3.14mm]{standalone}
\begin{document}
\begin{tikzpicture}[
font=\sffamily\scriptsize,
lbl/.style={
rectangle,
draw,
text width=1.8cm,
align=center,
inner sep=2pt
}
]
\draw[<->] (0,6) |- (6,0) node[pos=0.1,left] {S\textsubscript{p}} node[pos=0.75,below] {\# of processors};
\draw (0,0) -- (5,5) coordinate[pos=0.9] (A);
\draw[red,thick] (0,0) .. controls ++(3,3) and ++(-1,-0.1) .. (5.5,3) coordinate[pos=0.6] (B);
\draw[olive,thick] (0,0) .. controls ++(3,3) and ++(-.2,-1) .. (3.5,5.5) coordinate[pos=0.7] (C);
\draw[<-] (A) --++ (0.75,-0.5) node[lbl,below] {linear speedup};
\draw[<-] (B) --++ (0.5,-1) node[lbl,below] {sub-linear speedup (common)};
\draw[<-] (C) --++ (-1.5,0.5) node[lbl,above] {super-linear speedup (wonderful)};
\end{tikzpicture}
\end{document}