Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bandwidth test for shadowsocks
#!/bin/bash
method=$1
ss-tunnel -k test -m $method -l 8387 -L 127.0.0.1:8388 -s 127.0.0.1 -p 8389 &
ss_tunnel_pid=$!
ss-server -k test -m $method -s 127.0.0.1 -p 8389 &
ss_server_pid=$!
iperf -s -p 8388 &
iperf_pid=$!
sleep 3
iperf -c 127.0.0.1 -p 8387
kill $ss_tunnel_pid
kill $ss_server_pid
kill $iperf_pid
echo "Test Finished"
@lizhaode

This comment has been minimized.

Show comment
Hide comment
@lizhaode

lizhaode Jul 6, 2018

我在我本地的电脑上运行,发现使用aes-256-gcm加密算法,速度只有600Mbits/sec ,我电脑是17款的13寸MacBook。

我感觉速度远远低于预期啊

lizhaode commented Jul 6, 2018

我在我本地的电脑上运行,发现使用aes-256-gcm加密算法,速度只有600Mbits/sec ,我电脑是17款的13寸MacBook。

我感觉速度远远低于预期啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment