Skip to content

Instantly share code, notes, and snippets.

@rwmjones
Created September 10, 2021 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwmjones/29b63bf20b10371ca9f1a56dac295e83 to your computer and use it in GitHub Desktop.
Save rwmjones/29b63bf20b10371ca9f1a56dac295e83 to your computer and use it in GitHub Desktop.
cryptsetup benchmark
# Tests are approximate using memory only (no storage IO).
PBKDF2-sha1 82852 iterations per second for 256-bit key
PBKDF2-sha256 122956 iterations per second for 256-bit key
PBKDF2-sha512 111836 iterations per second for 256-bit key
PBKDF2-ripemd160 90269 iterations per second for 256-bit key
PBKDF2-whirlpool 31447 iterations per second for 256-bit key
argon2i 4 iterations, 110288 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
argon2id 4 iterations, 111368 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
# Algorithm | Key | Encryption | Decryption
aes-cbc 128b 14.2 MiB/s 19.0 MiB/s
serpent-cbc 128b 9.3 MiB/s 13.3 MiB/s
twofish-cbc 128b 18.8 MiB/s 22.3 MiB/s
aes-cbc 256b 14.3 MiB/s 15.0 MiB/s
serpent-cbc 256b 13.1 MiB/s 13.4 MiB/s
twofish-cbc 256b 21.3 MiB/s 22.3 MiB/s
aes-xts 256b 19.3 MiB/s 20.4 MiB/s
serpent-xts 256b 13.1 MiB/s 13.7 MiB/s
twofish-xts 256b 21.8 MiB/s 22.8 MiB/s
aes-xts 512b 15.9 MiB/s 15.9 MiB/s
serpent-xts 512b 13.9 MiB/s 13.7 MiB/s
twofish-xts 512b 23.0 MiB/s 22.8 MiB/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment