Skip to content

Instantly share code, notes, and snippets.

@tuldok89
Last active April 8, 2019 14:14
Show Gist options
  • Save tuldok89/6b29cc3b97416305cbd8a714fa6597bc to your computer and use it in GitHub Desktop.
Save tuldok89/6b29cc3b97416305cbd8a714fa6597bc to your computer and use it in GitHub Desktop.
Ryzen 1700X Cryptsetup Benchmark
root@PartedMagic:~# cryptsetup benchmark
# Tests are approximate using memory only (no storage IO).
PBKDF2-sha1 630912 iterations per second for 256-bit key
PBKDF2-sha256 893165 iterations per second for 256-bit key
PBKDF2-sha512 247773 iterations per second for 256-bit key
PBKDF2-ripemd160 438367 iterations per second for 256-bit key
PBKDF2-whirlpool 220659 iterations per second for 256-bit key
# Algorithm | Key | Encryption | Decryption
aes-cbc 128b 1113.4 MiB/s 3741.1 MiB/s
serpent-cbc 128b 109.6 MiB/s 343.7 MiB/s
twofish-cbc 128b 182.1 MiB/s 216.8 MiB/s
aes-cbc 256b 874.3 MiB/s 3127.0 MiB/s
serpent-cbc 256b 109.5 MiB/s 338.6 MiB/s
twofish-cbc 256b 182.3 MiB/s 212.3 MiB/s
aes-xts 256b 1992.0 MiB/s 1993.0 MiB/s
serpent-xts 256b 328.9 MiB/s 325.8 MiB/s
twofish-xts 256b 327.9 MiB/s 340.6 MiB/s
aes-xts 512b 1729.6 MiB/s 1737.9 MiB/s
serpent-xts 512b 333.4 MiB/s 326.7 MiB/s
twofish-xts 512b 340.1 MiB/s 339.0 MiB/s
root@PartedMagic:~# dmesg | grep -i raid
[ 0.063647] raid6: sse2x1 gen() 7382 MB/s
[ 0.080641] raid6: sse2x1 xor() 7150 MB/s
[ 0.097643] raid6: sse2x2 gen() 14214 MB/s
[ 0.114640] raid6: sse2x2 xor() 9966 MB/s
[ 0.131641] raid6: sse2x4 gen() 16789 MB/s
[ 0.148639] raid6: sse2x4 xor() 9468 MB/s
[ 0.165640] raid6: avx2x1 gen() 17507 MB/s
[ 0.182638] raid6: avx2x1 xor() 13574 MB/s
[ 0.199639] raid6: avx2x2 gen() 23273 MB/s
[ 0.216638] raid6: avx2x2 xor() 14876 MB/s
[ 0.233641] raid6: avx2x4 gen() 23242 MB/s
[ 0.250640] raid6: avx2x4 xor() 14542 MB/s
[ 0.250641] raid6: using algorithm avx2x2 gen() 23273 MB/s
[ 0.250643] raid6: .... xor() 14876 MB/s, rmw enabled
[ 0.250644] raid6: using avx2x2 recovery algorithm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment