Last active
December 21, 2023 20:43
-
-
Save mrjk/0bc49b0037446693c91ea982ab29514e to your computer and use it in GitHub Desktop.
CPU Crypt speed Bench
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
openssl speed | |
# See: https://openwrt.org/docs/guide-user/perf_and_log/benchmark.openssl | |
# https://openwrt.org/docs/techref/hardware/cryptographic.hardware.accelerators | |
cryptsetup benchmark | |
# See: https://possiblelossofprecision.net/?p=2255 | |
for cipher in aes128-ctr aes192-ctr aes256-ctr arcfour256 arcfour128 aes128-cbc 3des-cbc blowfish-cbc cast128-cbc aes192-cbc aes256-cbc arcfour ; do | |
echo "$cipher" | |
for try in 1 2 ; do | |
scp -c "$cipher" test-file [email protected]: | |
done | |
done | |
sysbench --test=cpu --cpu-max-prime=20000 run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment