1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-13 10:21:47 +03:00
Files
libssh/tests/benchmarks/bench2.sh
Jakub Jelen b6fd4912d7 Fix shellcheck issues
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2024-03-22 12:35:07 +01:00

15 lines
572 B
Bash
Executable File

#!/bin/bash
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: $(samplessh -V 2>&1)"
echo "Ping latency to $DEST":
ping -q -c 1 -n $DEST
echo "Destination $DEST SSHD version : $(echo | nc $DEST 22 | head -n1)"
echo "ssh login latency :$( (command time -f user:%U samplessh $DEST 'id > /dev/null') 2>&1)"
./generate.py | dd bs=4096 count=100000 | strace samplessh -c $CIPHER $DEST "dd bs=4096 of=/dev/null" 2>&1