| 1 |
set terminal png |
| 2 |
set size 1.75 |
| 3 |
set ylabel "Cycles per Operation" |
| 4 |
set xlabel "Operand size (bits)" |
| 5 |
|
| 6 |
set output "addsub.png" |
| 7 |
plot 'add.log' smooth bezier title "Addition", 'sub.log' smooth bezier title "Subtraction" |
| 8 |
|
| 9 |
set output "mult.png" |
| 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)" |
| 11 |
|
| 12 |
set output "expt.png" |
| 13 |
plot 'expt.log' smooth bezier title "Exptmod (Montgomery)", 'expt_dr.log' smooth bezier title "Exptmod (Dimminished Radix)", 'expt_2k.log' smooth bezier title "Exptmod (2k Reduction)" |
| 14 |
|
| 15 |
set output "invmod.png" |
| 16 |
plot 'invmod.log' smooth bezier title "Modular Inverse" |
| 17 |
|