From 610b3f96ec31ee6192d46767dedae9d9efaedf9b Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Sun, 28 May 2017 18:34:44 +0200 Subject: lots of small changes to the thesis. --- appendices/appendix.tex | 56 ++++++++++++++++++++++++++++++------------------- 1 file changed, 35 insertions(+), 21 deletions(-) (limited to 'appendices') diff --git a/appendices/appendix.tex b/appendices/appendix.tex index 138c7d7..70723f4 100644 --- a/appendices/appendix.tex +++ b/appendices/appendix.tex @@ -1,19 +1,17 @@ \clearpage -\appendix +\begin{appendices} -\section{Some scripts to do result processing} - -The script that converts the output from the statsd to a \LaTeX\xspace table format. +\section{Implementation} +\label{app:impl} -\begin{lstlisting} -cut -d ',' -f 2,5,8,11,14,17,20,23,26,29,32,35 | awk 'BEGIN {FS=",";}; {if (NR == 1) {print "prepre & premix & prepost & realpre & realmix & realpost \\\\\\hline\\hline";} else{ OFMT="%.2f"; c=1000000000; print ($5-$6)/c,"&",($1-$2)/c,"&",($3-$4)/c,"&",($11-$12)/c,"&",($7-$8)/c,"&",($9-$10)/c,"\\\\\\hline";}}' -\end{lstlisting} - -Script that calculates the mean and standard deviation of each column. - -\begin{lstlisting} -tail -n +2 | cut -d ',' -f 2,5,8,11,14,17,20,23,26,29,32,35 | awk 'BEGIN {FS=",";}; { OFMT="%.2f"; c=1000000000; print ($5-$6)/c,($1-$2)/c,($3-$4)/c,($11-$12)/c,($7-$8)/c,($9-$10)/c;}' | awk '{for(i=1;i<=NF;i++) {sum[i] += $i; sumsq[i] += ($i)^2}} END {for (i=1;i<=NF;i++) {printf " & %.3f (%.3f)", sum[i]/NR, sqrt((sumsq[i]-sum[i]^2/NR)/NR)} printf("\n")}' -\end{lstlisting} +\begin{table}[!ht] +\resizebox{\columnwidth}{!}{ +\begin{tabular}{l l} +Repository: & \url{https://cgit.brentj.es/cmix.git/} \\ +Documentation: & \url{https://dump.brentj.es/cmix/} \\ +\end{tabular} +} +\end{table} \section{PC specifications} \label{app-specs} @@ -60,6 +58,20 @@ System Benchmarks Index Score & & &1178.4\\\hl \caption{Unix Bench index results to give a comparable baseline} \end{table} +\section{Some scripts to do result processing} + +The script that converts the output from the statsd to a \LaTeX\xspace table format. + +\begin{lstlisting} +cut -d ',' -f 2,5,8,11,14,17,20,23,26,29,32,35 | awk 'BEGIN {FS=",";}; {if (NR == 1) {print "prepre (s) & premix (s) & prepost (s) & realpre (s) & realmix (s) & realpost (s) \\\hline\hline";} else{ OFMT="%.2f"; c=1000000000; print ($5-$6)/c,"&",($1-$2)/c,"&",($3-$4)/c,"&",($11-$12)/c,"&",($7-$8)/c,"&",($9-$10)/c,"\\\\\\hline";}}' +\end{lstlisting} + +Script that calculates the mean and standard deviation of each column. + +\begin{lstlisting} +tail -n +2 | cut -d ',' -f 2,5,8,11,14,17,20,23,26,29,32,35 | awk 'BEGIN {FS=",";}; { OFMT="%.2f"; c=1000000000; print ($5-$6)/c,($1-$2)/c,($3-$4)/c,($11-$12)/c,($7-$8)/c,($9-$10)/c;}' | awk '{for(i=1;i<=NF;i++) {sum[i] += $i; sumsq[i] += ($i)^2}} END {for (i=1;i<=NF;i++) {printf " & %.3f (%.3f)", sum[i]/NR, sqrt((sumsq[i]-sum[i]^2/NR)/NR)} printf("\n")}' +\end{lstlisting} + \clearpage \section{Tables} @@ -68,17 +80,17 @@ System Benchmarks Index Score & & &1178.4\\\hl \newcommand{\rtable}[2]{ \begin{table}[!ht] \centering -\resizebox{\columnwidth}{!}{ -\begin{tabular}{|c|c|c|c|c|c|} +\begin{scriptsize} +\begin{tabularx}{\columnwidth}{|X|X|X|X|X|X|} \hline \input{#1} -\end{tabular} -} +\end{tabularx} +\end{scriptsize} \caption{#2} \end{table} } -\vspace{0.42em} +\vspace{2.355em} \rtable{results/node1_500_ec.tab}{Timings of Node 1 elliptic curve algorithm with 500 clients} @@ -94,7 +106,9 @@ System Benchmarks Index Score & & &1178.4\\\hl \clearpage %Keep this as last appendix. -\section{Reference manual} +%\section{Reference manual} + +%\includepdf[pages=1]{appendices/refman.pdf} +%\includepdf[pages=2-]{appendices/refman.pdf} -\includepdf[pages=1]{appendices/refman.pdf} -\includepdf[pages=2-]{appendices/refman.pdf} \ No newline at end of file +\end{appendices} \ No newline at end of file -- cgit v1.2.3-70-g09d2