cyyself / wg-bench

WireGuard Benchmark using netns and iperf3
47 stars 24 forks source link

A script to run on a single line for OpenWrt #19

Closed itdoginfo closed 4 months ago

itdoginfo commented 4 months ago

Merged three of your scripts into one. This has the following advantages:

I also fixed the kill for iperf3. I often had it failing on a PID file. Kill by port works without issues. Also added a delay. Command for download and run (my fork for example):

sh <(wget -O - https://raw.githubusercontent.com/itdoginfo/wg-bench/master/openwrt-benchmark.sh)

Output

Packages:
Wireguard already installed
Iperf3 already installed
ip-full already installed
kmod-veth already installed
psmisc already installed

Routers details:
{
    "kernel": "5.15.137",
    "hostname": "OpenWrt",
    "system": "MediaTek MT7621 ver:1 eco:3",
    "model": "ASUS RT-AX53U",
    "board_name": "asus,rt-ax53u",
    "rootfs_type": "squashfs",
    "release": {
        "distribution": "OpenWrt",
        "version": "23.05.2",
        "revision": "r23630-842932a63d",
        "target": "ramips/mt7621",
        "description": "OpenWrt 23.05.2 r23630-842932a63d"
    }
}
Connecting to host 169.254.200.2, port 4242
[  5] local 169.254.200.1 port 38614 connected to 169.254.200.2 port 4242
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  11.2 MBytes  93.8 Mbits/sec    0    188 KBytes       
[  5]   1.00-2.00   sec  11.9 MBytes  99.7 Mbits/sec    0    199 KBytes       
[  5]   2.00-3.00   sec  11.7 MBytes  97.8 Mbits/sec    0    231 KBytes       
[  5]   3.00-4.00   sec  12.0 MBytes   100 Mbits/sec    0    231 KBytes       
[  5]   4.00-5.00   sec  11.7 MBytes  98.4 Mbits/sec    0    231 KBytes       
[  5]   5.00-6.00   sec  11.7 MBytes  98.3 Mbits/sec    0    231 KBytes       
[  5]   6.00-7.00   sec  11.8 MBytes  98.8 Mbits/sec    0    243 KBytes       
[  5]   7.00-8.00   sec  11.9 MBytes  99.6 Mbits/sec    0    243 KBytes       
[  5]   8.00-9.00   sec  11.9 MBytes  99.9 Mbits/sec    0    346 KBytes       
[  5]   9.00-10.00  sec  12.2 MBytes   102 Mbits/sec    0    346 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   118 MBytes  98.9 Mbits/sec    0             sender
[  5]   0.00-10.01  sec   117 MBytes  98.1 Mbits/sec                  receiver

iperf Done.
cyyself commented 4 months ago

Thanks for doing this!