aes-xts 512b benchmarks compared

Post Reply
elatllat
Posts: 1528
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1, N2
Has thanked: 21 times
Been thanked: 53 times
Contact:

aes-xts 512b benchmarks compared

Unread post by elatllat » Thu Feb 15, 2018 10:11 am

Code: Select all

MiB/s,   Product
   9.7,  RPI 1
  22.5,  RPI 3
  42.2,  Odroid C2
  60.0,  USB2 ===
  66.1,  RPI 4
  76.2,  Odroid XU4
 221.2,  UP1
 267.0,  espressobin
 370.5,  ROCK64
 625.0,  USB3 ===
 652.0,  Odroid N2 (S922X)
 655.6,  Odroid N1, ROCKPRO64, etc (RK3399)
 666.1,  UP2 (N4200)
 704.2,  Odroid H2 (J4105)
 826.1,  rackspace (E5-2670)
1366.7,  EC2 (E5-2676)
1393.7,  old i5 (2500S)
2710.3,  Ryzen 1800X
Last edited by elatllat on Thu Jul 04, 2019 8:19 pm, edited 7 times in total.

User avatar
odroid
Site Admin
Posts: 32360
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 147 times
Been thanked: 325 times
Contact:

Re: aes-xts 512b benchmarks compared

Unread post by odroid » Thu Feb 15, 2018 10:19 am

The N1's AES performance seems to be very similar to the Intel Apollo Lake Pentium.

BTW, we recently fixed the AES acceleration driver issue in XU4 kernel 4.14.18.
https://wiki.odroid.com/odroid-xu4/soft ... encryption

tkaiser
Posts: 672
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1
Has thanked: 0
Been thanked: 1 time
Contact:

Re: aes-xts 512b benchmarks compared

Unread post by tkaiser » Wed Jul 03, 2019 5:36 pm

Since you were asking for RPi 4 numbers:

Debian Stretch (armhf):

Code: Select all

root@raspberrypi:~# cryptsetup benchmark
# Tests are approximate using memory only (no storage IO).
PBKDF2-sha1       302357 iterations per second for 256-bit key
PBKDF2-sha256     424181 iterations per second for 256-bit key
PBKDF2-sha512     217366 iterations per second for 256-bit key
PBKDF2-ripemd160  266136 iterations per second for 256-bit key
PBKDF2-whirlpool   41426 iterations per second for 256-bit key
#  Algorithm | Key |  Encryption |  Decryption
     aes-cbc   128b    45.6 MiB/s    78.7 MiB/s
 serpent-cbc   128b           N/A           N/A
 twofish-cbc   128b           N/A           N/A
     aes-cbc   256b    36.2 MiB/s    59.2 MiB/s
 serpent-cbc   256b           N/A           N/A
 twofish-cbc   256b           N/A           N/A
     aes-xts   256b    86.9 MiB/s    76.0 MiB/s
 serpent-xts   256b           N/A           N/A
 twofish-xts   256b           N/A           N/A
     aes-xts   512b    67.5 MiB/s    57.8 MiB/s
 serpent-xts   512b           N/A           N/A
 twofish-xts   512b           N/A           N/A
Raspbian Buster (ARMv6):

Code: Select all

root@raspberrypi:/home/pi# cryptsetup benchmark
# Tests are approximate using memory only (no storage IO).
PBKDF2-sha1       317365 iterations per second for 256-bit key
PBKDF2-sha256     499321 iterations per second for 256-bit key
PBKDF2-sha512     142160 iterations per second for 256-bit key
PBKDF2-ripemd160  268865 iterations per second for 256-bit key
PBKDF2-whirlpool   48473 iterations per second for 256-bit key
argon2i       4 iterations, 256024 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
argon2id      4 iterations, 268911 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
#     Algorithm |       Key |      Encryption |      Decryption
        aes-cbc        128b        46.7 MiB/s        77.0 MiB/s
    serpent-cbc        128b               N/A               N/A
    twofish-cbc        128b               N/A               N/A
        aes-cbc        256b        36.7 MiB/s        58.3 MiB/s
    serpent-cbc        256b               N/A               N/A
    twofish-cbc        256b               N/A               N/A
        aes-xts        256b        85.5 MiB/s        74.6 MiB/s
    serpent-xts        256b               N/A               N/A
    twofish-xts        256b               N/A               N/A
        aes-xts        512b        66.1 MiB/s        56.8 MiB/s
    serpent-xts        512b               N/A               N/A
    twofish-xts        512b               N/A               N/A
Tests done with cpufreq governor set to performance and monitoring ensured that no throttling happened. OpenSSL benchmark also reveal that they didn't license ARMv8 Crypto Extensions: https://github.com/ThomasKaiser/sbc-ben ... Results.md
These users thanked the author tkaiser for the post:
elatllat (Thu Jul 04, 2019 8:17 pm)

elatllat
Posts: 1528
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1, N2
Has thanked: 21 times
Been thanked: 53 times
Contact:

Re: aes-xts 512b benchmarks compared

Unread post by elatllat » Thu Jul 04, 2019 8:17 pm

Thanks tkaiser :)

Post Reply

Return to “General Chat”

Who is online

Users browsing this forum: No registered users and 1 guest