aboutsummaryrefslogtreecommitdiff
path: root/tests/bench1.sh
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-11-05 18:18:35 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2009-11-05 18:18:35 +0100
commitab0d8a3828bfac12c343f29e90207cb8f6ba0a5d (patch)
tree4fe1d396e31c82495fa1fb7098ed6aee8d406f1f /tests/bench1.sh
parentefded187245327db5b89e754b2ab56196dfad393 (diff)
downloadlibssh-ab0d8a3828bfac12c343f29e90207cb8f6ba0a5d.tar.gz
libssh-ab0d8a3828bfac12c343f29e90207cb8f6ba0a5d.tar.xz
libssh-ab0d8a3828bfac12c343f29e90207cb8f6ba0a5d.zip
A few test cases for benchmarks
Diffstat (limited to 'tests/bench1.sh')
-rw-r--r--tests/bench1.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/bench1.sh b/tests/bench1.sh
new file mode 100644
index 00000000..4458e9a7
--- /dev/null
+++ b/tests/bench1.sh
@@ -0,0 +1,13 @@
+export CIPHER=aes128-cbc
+export DEST=localhost
+
+echo "Upload raw SSH statistics"
+echo "local machine: `uname -a`"
+echo "Cipher : $CIPHER ; Destination : $DEST (`ssh $DEST uname -a`)"
+echo "Local ssh version: `ssh -V 2>&1`"
+echo "Ping latency to $DEST":
+ping -q -c 1 -n $DEST
+echo "Destination $DEST SSHD vesion : `echo | nc $DEST 22 | head -n1`"
+echo "ssh login latency :`(time -f user:%U ssh $DEST 'id > /dev/null') 2>&1`"
+./generate.py | dd bs=4096 count=100000 | time ssh -c $CIPHER $DEST "dd bs=4096 of=/dev/null" 2>&1
+