2 set ylabel "Cycles per Operation"
3 set xlabel "Operand size (bits)"
5 set output "addsub-ba.png"
6 plot 'add-before.log' smooth bezier title "Addition (before)", \
7 'add-after.log' smooth bezier title "Addition (after)", \
8 'sub-before.log' smooth bezier title "Subtraction (before)", \
9 'sub-after.log' smooth bezier title "Subtraction (after)"
11 set output "mult-ba.png"
12 plot 'mult-before.log' smooth bezier title "Multiplication (without Karatsuba) (before)", \
13 'mult-after.log' smooth bezier title "Multiplication (without Karatsuba) (after)", \
14 'mult_kara-before.log' smooth bezier title "Multiplication (Karatsuba) (before)", \
15 'mult_kara-after.log' smooth bezier title "Multiplication (Karatsuba) (after)"
17 set output "sqr-ba.png"
18 plot 'sqr-before.log' smooth bezier title "Squaring (without Karatsuba) (before)", \
19 'sqr-after.log' smooth bezier title "Squaring (without Karatsuba) (after)", \
20 'sqr_kara-before.log' smooth bezier title "Squaring (Karatsuba) (before)", \
21 'sqr_kara-after.log' smooth bezier title "Squaring (Karatsuba) (after)"
23 set output "expt-ba.png"
24 plot 'expt-before.log' smooth bezier title "Exptmod (Montgomery) (before)", \
25 'expt-after.log' smooth bezier title "Exptmod (Montgomery) (after)", \
26 'expt_dr-before.log' smooth bezier title "Exptmod (Diminished Radix) (before)", \
27 'expt_dr-after.log' smooth bezier title "Exptmod (Diminished Radix) (after)", \
28 'expt_2k-before.log' smooth bezier title "Exptmod (2k Reduction) (before)", \
29 'expt_2k-after.log' smooth bezier title "Exptmod (2k Reduction) (after)", \
30 'expt_2kl-before.log' smooth bezier title "Exptmod (2k-l Reduction) (before)", \
31 'expt_2kl-after.log' smooth bezier title "Exptmod (2k-l Reduction) (after)"
33 set output "invmod-ba.png"
34 plot 'invmod-before.log' smooth bezier title "Modular Inverse (before)", \
35 'invmod-after.log' smooth bezier title "Modular Inverse (after)"