Measurements of stream ciphers on one machine: amd64; Zen (800f11); 2017 AMD Ryzen 7 1700; 8 x 3000MHz; rumba7, supercop-20241022
[Page version: 20241215 22:59:29]
eBASC
(ECRYPT Benchmarking
of Stream Ciphers)
is a project
to measure the performance of stream ciphers.
This page presents benchmark results collected in eBASC:
- Speed (cycles/byte) of encrypting an 8-byte message.
- Speed of encrypting a 64-byte message.
- Speed of encrypting a 576-byte message.
- Speed of encrypting a 1536-byte message.
- Speed of encrypting a 4096-byte message.
- Speed of encrypting a long message.
This is computed as 1/3072 of the difference in cycle counts
between encrypting 4096-byte messages and encrypting 1024-byte messages.
Graphs show timings for all message lengths between 0 and 4096 bytes.
The stair-step shape of a typical curve on the graphs
reflects the fact that these stream ciphers handle messages in blocks,
such as 64-byte blocks.
Each table row lists
the first quartile of many speed measurements,
the median of many speed measurements,
the third quartile of many speed measurements, and
the name of the primitive.
Measurements with large variance are indicated in red with question marks.
The symbol
T:
(starting with supercop-20200816)
means that the SUPERCOP database
at the time of benchmarking did not list constant time
as a goal for this implementation.
The symbol
T!!!
means that constant time was listed as a goal for this implementation,
but that the implementation failed TIMECOP.
(TIMECOP failures are not necessarily security issues;
they can sometimes be resolved by, e.g., declaring that a rejection-sampling condition is safe to declassify.)
There is a
separate page
with more information about each stream cipher and each implementation.
Designers and implementors
interested in submitting new stream ciphers and new implementations
should read the call for submissions.
Test results
Graphs:
old
(bytes,cycles)
Cycles/byte for long messages |
25% | 50% | 75% | stream |
0.44 | 0.45 | 0.45 | T:aes128ctr |
0.50? | 0.51? | 0.57? | T:aes192ctr |
0.58 | 0.58 | 0.59 | aes256ctr |
0.73 | 0.74 | 0.75 | tango642 |
0.93 | 0.94 | 0.96 | chacha8 |
1.22 | 1.23 | 1.24 | salsa208 |
1.26 | 1.27 | 1.30 | chacha12 |
1.76 | 1.76 | 1.77 | salsa2012 |
1.80 | 1.81 | 1.82 | T:speck6496ctr |
1.82 | 1.82 | 1.83 | T:hc128 |
1.86 | 1.89 | 1.90 | T:speck64128ctr |
1.95 | 1.98 | 2.00 | chacha20 |
2.09 | 2.10 | 2.11 | T:cryptmtv3 |
2.17 | 2.19 | 2.21 | T:speck128128ctr |
2.10 | 2.22 | 2.27 | T:tpy |
2.24 | 2.27 | 2.28 | T:speck128192ctr |
2.31 | 2.31 | 2.31 | T:trivium |
2.31 | 2.33 | 2.36 | T:tpy6 |
2.33 | 2.36 | 2.38 | T:speck128256ctr |
2.42 | 2.49 | 2.54 | T:sosemanuk |
2.53 | 2.55 | 2.58 | T:hc256 |
2.63 | 2.65 | 2.65 | T:nlsv2 |
2.67 | 2.70 | 2.72 | T:simon6496ctr |
2.82 | 2.83 | 2.83 | salsa20 |
2.82 | 2.83 | 2.83 | xsalsa20 |
2.87 | 2.88 | 2.89 | T:simon64128ctr |
2.98 | 2.99 | 3.00 | T:panama |
2.99 | 2.99 | 3.01 | T:rabbit |
3.33 | 3.34 | 3.35 | T:snow20 |
3.81 | 3.88 | 3.92 | T:tpypy |
4.03 | 4.05 | 4.06 | T:simon128256ctr |
4.05 | 4.06 | 4.06 | T:simon128128ctr |
4.21 | 4.23 | 4.23 | T:lexv2 |
9.16 | 9.17 | 9.20 | T:aes128estream |
13.32 | 13.36 | 13.38 | T:aes256estream |
18.47 | 18.55 | 18.82 | T:ocelot1 |
20.38 | 20.50 | 20.75 | T:ocelot2 |
33.63 | 35.05 | 35.84 | T:amastrid |
|
Cycles/byte for 4096 bytes |
25% | 50% | 75% | stream |
0.48 | 0.48 | 0.48 | T:aes128ctr |
0.62 | 0.62 | 0.62 | aes256ctr |
0.90 | 0.90 | 0.90 | tango642 |
0.94 | 0.95 | 0.96 | T:aes192ctr |
0.95 | 0.96 | 0.97 | chacha8 |
1.25 | 1.25 | 1.25 | salsa208 |
1.29 | 1.29 | 1.32 | chacha12 |
1.78 | 1.78 | 1.78 | salsa2012 |
1.85 | 1.86 | 1.86 | T:speck6496ctr |
1.92 | 1.93 | 1.94 | T:speck64128ctr |
1.98 | 2.00 | 2.01 | chacha20 |
2.24 | 2.25 | 2.26 | T:speck128128ctr |
2.31 | 2.33 | 2.33 | T:speck128192ctr |
2.39 | 2.41 | 2.42 | T:speck128256ctr |
2.42 | 2.42 | 2.42 | T:trivium |
2.64 | 2.65 | 2.65 | T:cryptmtv3 |
2.74 | 2.74 | 2.78 | T:sosemanuk |
2.79 | 2.80 | 2.80 | T:nlsv2 |
2.84 | 2.84 | 2.85 | salsa20 |
2.89 | 2.91 | 2.92 | T:simon6496ctr |
2.94 | 2.94 | 2.95 | xsalsa20 |
2.99 | 3.00 | 3.01 | T:tpy6 |
3.08 | 3.09 | 3.09 | T:rabbit |
3.22 | 3.22 | 3.23 | T:simon64128ctr |
3.43 | 3.43 | 3.43 | T:snow20 |
3.71 | 3.79 | 3.82 | T:tpy |
3.95 | 3.95 | 3.96 | T:panama |
4.32 | 4.32 | 4.33 | T:simon128128ctr |
4.37 | 4.37 | 4.37 | T:lexv2 |
4.59 | 4.60 | 4.60 | T:simon128256ctr |
4.90 | 4.90 | 4.91 | T:hc128 |
5.42 | 5.45 | 5.47 | T:tpypy |
9.24 | 9.24 | 9.27 | T:aes128estream |
10.98 | 10.99 | 11.00 | T:hc256 |
13.44 | 13.45 | 13.47 | T:aes256estream |
19.65 | 19.68 | 19.86 | T:ocelot1 |
22.25 | 22.30 | 22.44 | T:ocelot2 |
35.56 | 36.49 | 36.76 | T:amastrid |
|
Cycles/byte for 1536 bytes |
25% | 50% | 75% | stream |
0.52 | 0.53 | 0.54 | T:aes128ctr |
0.66 | 0.67 | 0.68 | aes256ctr |
0.98 | 0.98 | 1.00 | chacha8 |
1.17 | 1.18 | 1.19 | tango642 |
1.28 | 1.28 | 1.28 | salsa208 |
1.34 | 1.35 | 1.36 | chacha12 |
1.60 | 1.62 | 1.66 | T:aes192ctr |
1.81 | 1.81 | 1.83 | salsa2012 |
1.93 | 1.93 | 1.95 | T:speck6496ctr |
1.99 | 2.00 | 2.00 | T:speck64128ctr |
2.00 | 2.02 | 2.03 | chacha20 |
2.34 | 2.35 | 2.35 | T:speck128128ctr |
2.42 | 2.43 | 2.45 | T:speck128192ctr |
2.49 | 2.50 | 2.51 | T:speck128256ctr |
2.60 | 2.60 | 2.61 | T:trivium |
2.87 | 2.88 | 2.88 | salsa20 |
3.12 | 3.13 | 3.14 | T:nlsv2 |
3.14 | 3.14 | 3.15 | xsalsa20 |
3.22 | 3.23 | 3.33 | T:sosemanuk |
3.23 | 3.24 | 3.25 | T:rabbit |
3.24 | 3.24 | 3.25 | T:simon6496ctr |
3.58 | 3.59 | 3.59 | T:snow20 |
3.78 | 3.79 | 3.79 | T:simon64128ctr |
3.98 | 4.00 | 4.00 | T:cryptmtv3 |
4.13 | 4.16 | 4.18 | T:tpy6 |
4.61 | 4.62 | 4.63 | T:lexv2 |
4.76 | 4.77 | 4.77 | T:simon128128ctr |
5.48 | 5.50 | 5.51 | T:simon128256ctr |
5.56 | 5.57 | 5.68 | T:panama |
6.30 | 6.36 | 6.47 | T:tpy |
7.97 | 8.09 | 8.17 | T:tpypy |
9.35 | 9.36 | 9.38 | T:aes128estream |
10.04 | 10.04 | 10.05 | T:hc128 |
13.63 | 13.67 | 13.71 | T:aes256estream |
21.58 | 21.66 | 21.74 | T:ocelot1 |
25.02 | 25.05 | 25.07 | T:hc256 |
25.25 | 25.31 | 25.47 | T:ocelot2 |
37.21 | 37.79 | 39.05 | T:amastrid |
|
Cycles/byte for 576 bytes |
25% | 50% | 75% | stream |
0.69 | 0.70 | 0.74 | T:aes128ctr |
0.87 | 0.88 | 0.92 | aes256ctr |
1.11 | 1.12 | 1.13 | chacha8 |
1.44 | 1.47 | 1.50 | salsa208 |
1.54 | 1.55 | 1.56 | chacha12 |
1.87 | 1.89 | 1.91 | tango642 |
2.03 | 2.07 | 2.08 | salsa2012 |
2.16 | 2.16 | 2.20 | T:speck6496ctr |
2.24 | 2.24 | 2.31 | T:speck64128ctr |
2.37 | 2.38 | 2.39 | chacha20 |
2.67 | 2.68 | 2.71 | T:speck128128ctr |
2.72 | 2.72 | 2.73 | T:speck128192ctr |
2.78 | 2.79 | 2.82 | T:speck128256ctr |
3.05 | 3.08 | 3.11 | T:trivium |
3.20 | 3.21 | 3.21 | salsa20 |
3.37 | 3.40 | 3.42 | T:aes192ctr |
3.60 | 3.61 | 3.65 | T:rabbit |
3.87 | 3.89 | 3.90 | T:nlsv2 |
3.92 | 3.93 | 3.93 | xsalsa20 |
3.96 | 3.99 | 4.00 | T:snow20 |
4.47 | 4.48 | 4.63 | T:sosemanuk |
4.64 | 4.65 | 4.65 | T:cryptmtv3 |
4.72 | 4.73 | 4.76 | T:simon6496ctr |
5.24 | 5.29 | 5.31 | T:lexv2 |
5.93 | 5.96 | 6.02 | T:simon64128ctr |
6.96 | 6.97 | 7.01 | T:simon128128ctr |
7.12 | 7.14 | 7.18 | T:tpy6 |
9.67 | 9.68 | 9.70 | T:aes128estream |
9.82 | 9.84 | 9.90 | T:panama |
10.31 | 10.32 | 10.34 | T:simon128256ctr |
13.35 | 13.55 | 14.19 | T:tpy |
14.04 | 14.12 | 14.14 | T:aes256estream |
15.09 | 15.26 | 15.49 | T:tpypy |
23.72 | 23.75 | 23.77 | T:hc128 |
26.64 | 26.74 | 26.76 | T:ocelot1 |
32.90 | 33.24 | 33.86 | T:ocelot2 |
44.91 | 45.02 | 45.55 | T:amastrid |
62.47 | 62.50 | 62.53 | T:hc256 |
|
Cycles/byte for 64 bytes |
25% | 50% | 75% | stream |
2.31? | 2.41? | 2.67? | T:aes128ctr |
2.62 | 2.64 | 2.70 | chacha8 |
2.73? | 2.73? | 3.36? | aes256ctr |
3.03? | 3.12? | 3.41? | salsa208 |
3.52 | 3.67 | 3.80 | chacha12 |
4.14 | 4.20 | 4.41 | salsa2012 |
4.89 | 4.92 | 4.92 | T:speck6496ctr |
4.97? | 5.11? | 5.53? | T:speck64128ctr |
5.45 | 5.58 | 5.86 | T:speck128192ctr |
5.56 | 5.61 | 5.91 | T:speck128128ctr |
5.62 | 5.64 | 5.70 | chacha20 |
6.14 | 6.20 | 6.23 | salsa20 |
6.25 | 6.25 | 6.27 | T:speck128256ctr |
8.28 | 8.64 | 9.08 | T:rabbit |
8.84 | 8.94 | 9.09 | T:simon6496ctr |
8.97 | 8.98 | 9.03 | T:trivium |
9.06 | 9.12 | 9.44 | T:snow20 |
10.05 | 10.30 | 10.31 | T:simon64128ctr |
10.62 | 10.75 | 10.81 | tango642 |
11.75 | 11.75 | 11.89 | T:cryptmtv3 |
12.33 | 12.50 | 12.69 | xsalsa20 |
13.62 | 13.64 | 13.91 | T:lexv2 |
13.62 | 13.70 | 13.86 | T:aes128estream |
14.30 | 14.45 | 14.45 | T:simon128128ctr |
15.50 | 15.62 | 15.89 | T:nlsv2 |
16.53 | 16.69 | 16.98 | T:simon128256ctr |
19.16 | 19.33 | 19.86 | T:aes256estream |
19.62 | 19.62 | 19.62 | T:sosemanuk |
25.45 | 25.98 | 26.23 | T:aes192ctr |
46.25 | 46.58 | 47.09 | T:tpy6 |
64.31 | 64.56 | 65.27 | T:panama |
90.36 | 90.88 | 91.50 | T:ocelot1 |
103.92 | 104.38 | 104.94 | T:tpy |
109.09 | 109.88 | 110.70 | T:tpypy |
119.91 | 124.64 | 129.20 | T:ocelot2 |
126.34 | 127.12 | 128.06 | T:amastrid |
199.00 | 199.27 | 199.36 | T:hc128 |
541.69 | 541.94 | 542.12 | T:hc256 |
|
Cycles/byte for 8 bytes |
25% | 50% | 75% | stream |
17.88? | 17.88? | 20.62? | T:aes128ctr |
19.88? | 19.88? | 23.00? | T:speck6496ctr |
19.88? | 20.38? | 22.38? | T:speck64128ctr |
21.50? | 21.88? | 25.75? | chacha8 |
22.25 | 23.50 | 24.25 | aes256ctr |
24.00 | 24.12 | 26.50 | T:speck128256ctr |
24.50? | 28.12? | 31.00? | T:speck128128ctr |
28.88? | 30.12? | 33.00? | T:speck128192ctr |
32.25? | 34.50? | 36.25? | chacha12 |
43.62 | 43.62 | 45.62 | T:simon6496ctr |
43.62 | 44.12 | 44.50 | salsa208 |
45.62 | 46.12 | 47.62 | chacha20 |
50.62 | 52.88 | 55.12 | T:rabbit |
53.00 | 53.00 | 57.12 | T:simon64128ctr |
55.25 | 55.25 | 55.38 | T:trivium |
56.12 | 56.12 | 56.75 | salsa2012 |
59.88 | 60.38 | 61.62 | T:aes128estream |
71.25 | 71.50 | 71.88 | T:aes256estream |
70.75 | 72.25 | 72.25 | T:simon128128ctr |
71.50 | 74.25 | 76.38 | T:snow20 |
78.25 | 78.38 | 78.75 | T:cryptmtv3 |
80.38 | 80.50 | 83.25 | T:lexv2 |
80.88 | 81.00 | 81.00 | salsa20 |
80.75 | 81.88 | 81.88 | tango642 |
81.12 | 82.25 | 84.12 | T:nlsv2 |
86.50 | 86.50 | 87.62 | T:simon128256ctr |
131.12 | 132.50 | 133.62 | xsalsa20 |
155.38 | 155.62 | 155.88 | T:sosemanuk |
206.62 | 206.75 | 208.88 | T:aes192ctr |
352.50 | 354.00 | 356.12 | T:tpy6 |
507.38 | 511.88 | 522.50 | T:panama |
591.62 | 600.50 | 605.00 | T:ocelot1 |
816.38 | 818.38 | 823.12 | T:tpy |
814.38 | 830.38 | 858.75 | T:ocelot2 |
836.88 | 844.75 | 855.62 | T:amastrid |
848.62 | 853.75 | 860.88 | T:tpypy |
1588.62 | 1589.12 | 1591.25 | T:hc128 |
4329.00 | 4332.25 | 4335.38 | T:hc256 |
|
|