summaryrefslogtreecommitdiff
path: root/regress/cipher-speed.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/cipher-speed.sh')
-rw-r--r--regress/cipher-speed.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/regress/cipher-speed.sh b/regress/cipher-speed.sh
index 21bf0f2e9..65e5f35ec 100644
--- a/regress/cipher-speed.sh
+++ b/regress/cipher-speed.sh
@@ -5,12 +5,11 @@ tid="cipher speed"
5 5
6getbytes () 6getbytes ()
7{ 7{
8 sed -n '/transferred/s/.*secs (\(.* bytes.sec\).*/\1/p' 8 sed -n -e '/transferred/s/.*secs (\(.* bytes.sec\).*/\1/p' \
9 -e '/copied/s/.*s, \(.* MB.s\).*/\1/p'
9} 10}
10 11
11tries="1 2" 12tries="1 2"
12DATA=/bin/ls
13DATA=/bsd
14 13
15ciphers="aes128-cbc 3des-cbc blowfish-cbc cast128-cbc 14ciphers="aes128-cbc 3des-cbc blowfish-cbc cast128-cbc
16 arcfour128 arcfour256 arcfour 15 arcfour128 arcfour256 arcfour
@@ -26,7 +25,7 @@ config_defined HAVE_EVP_SHA256 && \
26for c in $ciphers; do n=0; for m in $macs; do 25for c in $ciphers; do n=0; for m in $macs; do
27 trace "proto 2 cipher $c mac $m" 26 trace "proto 2 cipher $c mac $m"
28 for x in $tries; do 27 for x in $tries; do
29 echon "$c/$m:\t" 28 printf "%-60s" "$c/$m:"
30 ( ${SSH} -o 'compression no' \ 29 ( ${SSH} -o 'compression no' \
31 -F $OBJ/ssh_proxy -2 -m $m -c $c somehost \ 30 -F $OBJ/ssh_proxy -2 -m $m -c $c somehost \
32 exec sh -c \'"dd of=/dev/null obs=32k"\' \ 31 exec sh -c \'"dd of=/dev/null obs=32k"\' \
@@ -47,7 +46,7 @@ ciphers="3des blowfish"
47for c in $ciphers; do 46for c in $ciphers; do
48 trace "proto 1 cipher $c" 47 trace "proto 1 cipher $c"
49 for x in $tries; do 48 for x in $tries; do
50 echon "$c:\t" 49 printf "%-60s" "$c:"
51 ( ${SSH} -o 'compression no' \ 50 ( ${SSH} -o 'compression no' \
52 -F $OBJ/ssh_proxy -1 -c $c somehost \ 51 -F $OBJ/ssh_proxy -1 -c $c somehost \
53 exec sh -c \'"dd of=/dev/null obs=32k"\' \ 52 exec sh -c \'"dd of=/dev/null obs=32k"\' \