其中,a为并行计算部分所占比例,k为并行处理的个数。 当1-a=0时,(没有串行,只有并行)最大加速比s=n; 当a=0时,(只有串行,没有并行)最小加速比s=1; 当k→∞时,s → 1 /(1-a),即加速比的上限。 例如,若串行代码占整个代码的25%,则并行处理的总体性能不可能超过4。