# -*- gnu-plot -*- # --------------------------------------------------------------------------- # Runtimes # Gnuplot manual: http://www.gnuplot.info/documentation.html # --------------------------------------------------------------------------- # generate PostScript set terminal postscript landscape dashed color "HelveticaBold" 22 #set terminal postscript landscape dashed color "TimesItalic" 22 #set output "Newspeed.ps" # pipe result through a converter to .pdf set output "| ps2pdf - speedups.pdf" #set key right width 3 box lw 2 set key left top set title "Matrix Multiplication" # specify the range of values on all axes set xrange [1:9] set yrange [0:7] #set xtics 4 #set logscale x # set grid # labels to put on both axes set xlabel "Number of Cores" set ylabel "Speedup" # set sequential time here: seq = 109.96 # plot the speedup, reading runtimes from rt.dat plot \ "rt.dat" using 1:(seq/$2) title "Naive parallel (matrix04.c)" with linesp 1, \ x title "Linear" with lines 2