# file to plot iperf3 results for file 10.3.33.12:4_P4_sum set term png noenhanced size 600, 350 set key font ',10' set macro set grid xtics set grid ytics set key width -12 set label "Data Dir: corsa.100MB.loop " at character .5,.5 font ",9" set title "Throughput: sum of 16 parallel streams; bbr2 vs cubic; non-overlapped \n nersc-tbn-1 to 10.3.33.12 \n 10Gbps host to 10Gbps host, rtt = 88.0ms" stats "pscheduler_cubic_p16/10.3.33.12:4.all.dat" using 1:2 nooutput prefix "all1" stats "pscheduler_cubic_p16/10.3.33.12:4.all.sum.dat" using 3:4 nooutput prefix "all2" stats "pscheduler_cubic_p16/10.3.33.12:4.dat" using 3:4 nooutput prefix "cubic" stats "pscheduler_bbr2_p16/10.3.33.12:4.dat" using 3:4 nooutput prefix "bbr2" cubic_title = sprintf("title 'cubic (mean = %.2f Gbps)'", cubic_mean_x) bbr2_title = sprintf("title 'bbr2 (mean = %.2f Gbps)'", bbr2_mean_x) cr_title = "title 'cubic retransmits (0.0000% of 74831.8K segs)'" br_title = "title 'bbr2 retransmits (0.0000% of 37382.3K segs)'" set xlabel "time \(seconds\)" set ylabel "Bandwidth \(Gbits/second\)" set y2label "TCP Retransmits" set ytics nomirror set y2tics set output "gnuplot/10.3.33.12:4_P4_sum.png" set xrange [1:all1_max_x] set yrange [0:ceil(all2_max_x * 1.3)] set y2range [0:ceil(all2_max_y * 2 + 1)] plot "pscheduler_cubic_p16/10.3.33.12:4.dat" using 1:3 @cubic_title with linespoints lw 2 pt 2, \ "pscheduler_bbr2_p16/10.3.33.12:4.dat" using 1:3 @bbr2_title with linespoints lw 2 pt 2, \ "pscheduler_cubic_p16/10.3.33.12:4.dat" using 1:($4 == 0 ? NaN : $4) @cubic_title with points pt 13 ps 1 axes x1y2, \ "pscheduler_bbr2_p16/10.3.33.12:4.dat" using 1:($4 == 0 ? NaN : $4) @bbr2_title with points pt 13 ps 1 axes x1y2