Skip to content

Commit

Permalink
Update ssh cipher benchmark.md
Browse files Browse the repository at this point in the history
rewrote to python
  • Loading branch information
Red-Eyed authored Jul 16, 2023
1 parent b0c6d8d commit 166070e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/ssh cipher benchmark.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
```bash
for i in `ssh -Q cipher`;
do dd if=/dev/zero bs=1M count=100 2> /dev/null \
| ssh -c $i $USER@localhost "(/usr/bin/time -p cat) > /dev/null" 2>&1 \
| grep real | awk '{print "'$i': "100 / $2" MB/s" }'; done
for i in `ssh -Q cipher`;
do dd if=/dev/zero bs=1M count=100 2> /dev/null | ssh -c $i $USER@localhost "python3 -c 'import sys, time; s=time.time(); sys.stdin.read(); print(f\"$i {100 / (time.time() - s):0.2f} MB/s\")'"; done
```

#ssh #cipher

0 comments on commit 166070e

Please sign in to comment.