1 set terminal png color
\r
3 set ylabel "Operations per Second"
\r
4 set xlabel "Operand size (bits)"
\r
6 set output "addsub.png"
\r
7 plot 'add.log' smooth bezier title "Addition", 'sub.log' smooth bezier title "Subtraction"
\r
9 set output "mult.png"
\r
10 plot 'sqr.log' smooth bezier title "Squaring (without Karatsuba)", 'sqr_kara.log' smooth bezier title "Squaring (Karatsuba)", 'mult.log' smooth bezier title "Multiplication (without Karatsuba)", 'mult_kara.log' smooth bezier title "Multiplication (Karatsuba)"
\r
12 set output "expt.png"
\r
13 plot 'expt.log' smooth bezier title "Exptmod (Montgomery)", 'expt_dr.log' smooth bezier title "Exptmod (Dimminished Radix)"
\r
15 set output "invmod.png"
\r
16 plot 'invmod.log' smooth bezier title "Modular Inverse"
\r