cryptsetup benchmark of symmetric ciphers on Linux x86_64 Fri, 21 Mar 2014 19:38:54 +0100 Intel i7-3770 QEMU: 1.7.0 (KVM) Host / Guest kernel: v3.14-rc5 / v3.14-rc7-59-g08edb33 Trials: 3 Tested implementations: generic, x86_64 optimized, x86_64/SSE2, AES-NI, x86_64/3-way. (avx+osxsave is not supported by CPU) Files: 1-normal.txt raw results for generic 2-x86_64.txt x86_64, sse2, x86_64 3-x86_64-aesni-serpavx-twofish3.txt aesni, avx, 3way readme.txt this file initramfs.tar.xz used for QEMU initramfs kernel-config used for building QEMU guest kernel qemu-root.tar.xz used for QEMU initramfs Ciphers Encryption/Decryption speed generic x86_64 aesni aes-cbc-128 201/276 200/280 669/2500 aes-cbc-256 162/205 159/208 492/1835 aes-xts-256 275/270 272/276 2050/2034 (note, AES-NI performance varies a lot) generic sse2 serpent-cbc-128 89/109 99/320 serpent-cbc-256 89/109 99/320 serpent-xts-256 100/108 315/297 generic x86_64 3way twofish-cbc-128 151/193 157/200 205/283 twofish-cbc-256 151/193 157/200 205/283 twofish-xts-256 187/188 196/199 264/263 # Binaries are from Arch Linux: # busybox 1.22.1-1 # cryptsetup 1.6.4-1 # device-mapper 2.02.105-2 # glibc 2.19-3 # libgcrypt 1.6.1-1 # libgpg-error 1.12-1 # libsystemd 211-1 (libudev.so.1) # popt 1.16-7 # util-linux 2.24.1-3 # by `build-chroot cryptsetup` from https://git.lekensteyn.nl/scripts/ tar xf qemu-root.tar.xz -C /tmp/ tar xf initramfs.tar.xz -C /tmp/ mkdir /tmp/linux-build/ cp kernel-config /tmp/linux-build/.config make -C /tmp/linux/ O=/tmp/linux-build/ -j16 bzImage # (note, AVX is not really tested due to missing osxsave) qemu-system-x86_64 -enable-kvm -kernel /tmp/linux-build/arch/x86/boot/bzImage -m 1G -serial file:ser.txt -vnc :0 -append 'console=ttyS0 loglevel=8' -cpu qemu64,+aes,+avx