# Study About the Performance of Ascon in Arduino Devices
## 5 Performance Analysis of the Ascon Implementation
### Measures in the Encryption/Decryption Operations with Ascon
\begin{table}
\begin{tabular}{c c c c c c c} \hline \hline \multirow{2}{*}{**Variant**} & \multicolumn{6}{c}{**Number of Cycles and Encrypptions in the Encryption Process. Arduino DUE**} \\ \cline{2-7}  & **\# Cyc. (1 s)** & **\# Enc. (1 s)** & **\# Cyc. (5 s)** & **\# Enc. (5 s)** & **\# Cyc. (10 s)** & **\# Enc. (10 s)** \\ \hline Ascon-128 & 16,185,472 & 74 & 80,021,696 & 366 & 160,035,008 & 732 \\ Average & 221,718 & — & 219,237 & — & 219,226 & — \\ Ascon-128a & 16,033,152 & 79 & 80,134,848 & 395 & 160,057,088 & 789 \\ Average & 202,951 & — & 203,387 & — & 203,376 & — \\ Ascon-80 pq & 16,128,000 & 72 & 80,161,024 & 358 & 160,088,832 & 715 \\ Average & 224,000 & — & 223,913 & — & 223,900 & — \\ \hline \hline \end{tabular}
\end{table} 
Table 7: Number of cycles (Cyc.) and encryptions (Enc.) in the encryption operation in Arduino Mega2560 for the three versions of Ascon. \begin{table}
\begin{tabular}{c c c c c c c} \hline \hline \multirow{2}{*}{**Variant**} & \multicolumn{6}{c}{**Number of Cycles and Encrypptions in the Encryption Process. Arduino DUE**} \\ \cline{2-7}  & **\# Cyc. (1 s)** & **\# Enc. (1 s)** & **\# Cyc. (5 s)** & **\# Enc. (5 s)** & **\# Cyc. (10 s)** & **\# Enc. (10 s)** \\ \hline Ascon-128 & 84,025,452 & 2464 & 420,008,820 & 12,320 & 840,003,108 & 24,640 \\ Average & 33,015 & — & 33,011 & — & 33,011 & — \\ Ascon-128a & 84,012,768 & 2772 & 420,010,248 & 13,860 & 840,007,812 & 27,720 \\ Average & 30,661 & — & 30,664 & — & 30,663 & — \\ Ascon-80 pq & 84,015,876 & 2464 & 420,022,512 & 12,320 & 840,030,492 & 24,640 \\ Average & 34,097 & — & 34,092 & — & 34,092 & — \\ \hline \hline \end{tabular}
\end{table} 
Table 5: Number of cycles (Cyc.) and encryptions (Enc.) in the encryption process in Arduino DUE for the three versions of Ascon. Tables 9 and 10 show the results obtained in relation to the number of cycles and the encryption and decryption operations for the same previous periods of time with the same processes (encryption and decryption) for the three considered versions of Ascon on an Arduino Nano Every. In this case, again the lowest number of cycles, on average, are also obtained for the Ascon-128a version for both processes, whereas, the biggest number of cycles, on average, corresponds to Ascon-80 pq. Finally, Tables 11 and 12 present the values obtained for the number of cycles and the encryption and decryption operations for the considered periods of time with the same processes (encryption and decryption). We have considered, as in the previous cases, the three versions of Ascon on an Arduino Nano ESP32. Again, the lowest number of cycles, on average, was obtained for Ascon-128a version for both processes--whereas the biggest number of cycles, on average, corresponds to Ascon-80 pq. For this Arduino device, one core has been used. \begin{table}
\begin{tabular}{c c c c c c c} \hline \hline \multirow{2}{*}{**Variant**} & \multicolumn{4}{c}{**Number of Cycles and Decryptions in the Decryption Process. Arduino Nano Every**} \\ \cline{2-7}  & **\# Cyc. (1 s)** & **\# Dec. (1 s)** & **\# Cyc. (5 s)** & **\# Dec. (5 s)** & **\# Cyc. (10 s)** & **\# Dec. (10 s)** \\ \hline Ascon-128 & 16,097,920 & 78 & 80,077,056 & 388 & 160,156,672 & 776 \\ Average & 206,383 & — & 206,384 & — & 206,387 & — \\ Ascon-128a & 16,098,240 & 84 & 80,110,912 & 418 & 160,030,656 & 835 \\ Average & 191,645 & — & 191,652 & — & 191,653 & — \\ Ascon-80 pq & 16,097,664 & 76 & 80,022,400 & 378 & 160,034,944 & 756 \\ Average & 211,811 & — & 211,699 & — & 211,686 & — \\ \hline \hline \end{tabular}
\end{table} 
Table 10: Number of cycles (Cyc.) and decryptions (Dec.) in the decryption operation in Arduino Nano Every for the three versions of Ascon.