Skip to content

Instantly share code, notes, and snippets.

@mrjk
Last active December 21, 2023 20:43
Show Gist options
  • Save mrjk/0bc49b0037446693c91ea982ab29514e to your computer and use it in GitHub Desktop.
Save mrjk/0bc49b0037446693c91ea982ab29514e to your computer and use it in GitHub Desktop.
CPU Crypt speed Bench
#!/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