nws.sh

Hits

Your Reliable Script for Comprehensive Network Performance Testing.

Features

I would like to express my heartfelt thanks to our awesome sponsors for their invaluable support:

Thanks to Teddysun [email protected] for the base bench.sh script

Usage

Global Speedtest (default)

curl -sL nws.sh | bash
wget -qO- nws.sh | bash

Regional Speedtest

region_name = na, sa, eu, asia, africa, au, middle-east, india, china, iran, indonesia, russia

curl -sL nws.sh | bash -s -- -r region_name
wget -qO- nws.sh | bash -s -- -r region_name

Example:

wget -qO- nws.sh | bash -s -- -r india

Sample Output (Global)

---------------------------------- nws.sh ---------------------------------
  A simple script to bench network performance using speedtest-cli
---------------------------------------------------------------------------
Version            : v2024.09.18
Global Speedtest   : wget -qO- nws.sh | bash
Region Speedtest   : wget -qO- nws.sh | bash -s -- -r 
---------------------------------------------------------------------------
Basic System Info
---------------------------------------------------------------------------
CPU Model          : AMD EPYC 7763 64-Core Processor
CPU Cores          : 5 @ 2445.402 MHz
CPU Cache          : 512 KB
AES-NI             : ✔ Enabled
VM-x/AMD-V         : ✔ Enabled
Total Disk         : 98.9 GB (19.8 GB Used)
Total RAM          : 9.7 GB (1.3 GB Used)
Total Swap         : 3.0 GB (0 Used)
System uptime      : 57 days, 10 hour 22 min
Load average       : 0.24, 0.14, 0.13
OS                 : Ubuntu 22.04.4 LTS
Arch               : x86_64 (64 Bit)
Kernel             : 5.15.0-116-generic
Virtualization     : KVM
TCP Control        : bbr
---------------------------------------------------------------------------
Basic Network Info
---------------------------------------------------------------------------
Primary Network    : IPv6
IPv6 Access        : ✔ Online
IPv4 Access        : ✔ Online
ISP                : DataCamp Limited
ASN                : AS60068 Datacamp Limited
ASN (IPv4)         : AS212238 Datacamp Limited
Host               : CDN77 Singapore
Location           : Singapore, North West-03, Singapore
---------------------------------------------------------------------------
Speedtest.net (Region: GLOBAL)
---------------------------------------------------------------------------
Location         Latency     Loss    DL Speed       UP Speed       Server

ISP: Nexeon Technologies

Nearest          1.30 ms     0.0%    6801.00 Mbps   6324.32 Mbps   NewMedia Express - Singapore

Kochi, IN        135.14 ms   0.4%    2331.98 Mbps   503.91 Mbps    Asianet Broadband - Cochin
Bangalore, IN    37.36 ms    0.0%    4150.99 Mbps   2259.01 Mbps   Bharti Airtel Ltd - Bangalore
Chennai, IN      34.41 ms    N/A     4239.76 Mbps   3674.00 Mbps   Jio - Chennai
Mumbai, IN       53.94 ms    0.0%    4438.07 Mbps   1628.58 Mbps   i3D.net - Mumbai
Delhi, IN        68.89 ms    0.0%    5305.94 Mbps   1257.02 Mbps   Tata Play Fiber - New Delhi

Seattle, US      195.62 ms   N/A     2497.59 Mbps   474.90 Mbps    Comcast - Seattle, WA
Los Angeles, US  168.02 ms   0.0%    3049.68 Mbps   528.34 Mbps    ReliableSite Hosting - Los Angeles, CA
Dallas, US       203.97 ms   0.0%    3508.85 Mbps   425.87 Mbps    i3D.net - Dallas, TX
Miami, US        260.42 ms   N/A     1652.07 Mbps   326.44 Mbps    Dish Wireless - Miami, FL
New York, US     219.14 ms   0.0%    5247.94 Mbps   1094.72 Mbps   GSL Networks - New York, NY
Toronto, CA      199.36 ms   0.0%    2609.28 Mbps   438.25 Mbps    Rogers - Toronto, ON
Mexico City, MX  201.59 ms   N/A     3624.56 Mbps   424.48 Mbps    INFINITUM - Mexico City

London, UK       220.12 ms   0.0%    4299.89 Mbps   1103.14 Mbps   VeloxServ Communications - London
Amsterdam, NL    166.55 ms   0.0%    5517.39 Mbps   1075.73 Mbps   31173 Services AB - Amsterdam
Paris, FR        231.02 ms   N/A     4099.58 Mbps   823.54 Mbps    Axione - Paris
Frankfurt, DE    175.67 ms   0.0%    1675.52 Mbps   560.19 Mbps    Clouvider Ltd - Frankfurt am Main
Warsaw, PL       169.94 ms   0.0%    4316.61 Mbps   1410.42 Mbps   Play - Warszawa
Bucharest, RO    173.98 ms   0.0%    4252.47 Mbps   388.07 Mbps    Vodafone Romania Fixed – Bucharest - Bucharest
Moscow, RU       328.29 ms   0.0%    3919.06 Mbps   672.10 Mbps    RETN - Moscow

Jeddah, SA       194.02 ms   0.0%    4308.41 Mbps   1193.33 Mbps   Saudi Telecom Company
Dubai, AE        85.45 ms    0.0%    4945.75 Mbps   1945.46 Mbps   du - Dubai
Fujairah, AE     76.02 ms    0.0%    6330.62 Mbps   3262.74 Mbps   e& UAE - Fujairah
Istanbul, TR     185.28 ms   0.0%    3309.72 Mbps   792.26 Mbps    Turkcell - Istanbul
Tehran, IR       233.49 ms   0.0%    2594.74 Mbps   347.36 Mbps    Asiatech - Tehran

Tokyo, JP        179.32 ms   0.0%    4225.86 Mbps   492.61 Mbps    IPA CyberLab 400G - Tokyo
Shanghai, CU-CN  224.31 ms   3.0%    3704.56 Mbps   125.70 Mbps    China Unicom 5G - Shanghai
Nanjing, CT-CN   321.46 ms   7.3%    310.93 Mbps    4.53 Mbps      China Telecom JiangSu 5G - Nanjing
Hong Kong, CN    36.81 ms    N/A     6591.88 Mbps   2226.31 Mbps   STC - Hong Kong
Singapore, SG    0.84 ms     0.0%    8311.79 Mbps   8365.12 Mbps   i3D.net - Singapore
Jakarta, ID      14.42 ms    0.0%    4735.94 Mbps   5984.13 Mbps   PT Solnet Indonesia - Jakarta
---------------------------------------------------------------------------
Avg DL Speed       : 4093.84 Mbps
Avg UL Speed       : 1617.17 Mbps

Total DL Data      : 178.98 GB
Total UL Data      : 62.39 GB
Total Data         : 241.38 GB
---------------------------------------------------------------------------
Duration           : 16 min 24 sec
System Time        : 18/09/2024 - 00:03:48 WIB
Total Script Runs  : 81295
---------------------------------------------------------------------------
Result             : https://result.nws.sh/r/1726592066_XGBFET_GLOBAL.txt
---------------------------------------------------------------------------

Sample Output (Regional)

---------------------------------- nws.sh ---------------------------------
  A simple script to bench network performance using speedtest-cli
---------------------------------------------------------------------------
Version            : v2024.09.18
Global Speedtest   : wget -qO- nws.sh | bash
Region Speedtest   : wget -qO- nws.sh | bash -s -- -r 
---------------------------------------------------------------------------
Basic System Info
---------------------------------------------------------------------------
CPU Model          : Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
CPU Cores          : 8 @ 3902.256 MHz
CPU Cache          : 8192 KB
AES-NI             : ✔ Enabled
VM-x/AMD-V         : ✔ Enabled
Total Disk         : 438.5 GB (3.6 GB Used)
Total RAM          : 62.4 GB (1.1 GB Used)
Total Swap         : 512.0 MB (0 Used)
System uptime      : 14 days, 14 hour 9 min
Load average       : 0.34, 0.18, 0.14
OS                 : Ubuntu 24.04.1 LTS
Arch               : x86_64 (64 Bit)
Kernel             : 6.8.0-41-generic
Virtualization     : NONE
TCP Control        : cubic
---------------------------------------------------------------------------
Basic Network Info
---------------------------------------------------------------------------
Primary Network    : IPv6
IPv6 Access        : ✔ Online
IPv4 Access        : ✔ Online
ISP                : OVH SAS
ASN                : AS16276 OVH SAS
Host               : OVH Hosting, Inc
Location           : Beauharnois, Quebec-QC, Canada
---------------------------------------------------------------------------
Speedtest.net (Region: NORTH AMERICA)
---------------------------------------------------------------------------
Location         Latency     Loss    DL Speed       UP Speed       Server

ISP: OVH SAS

Nearest          1.33 ms     0.0%    910.56 Mbps    862.76 Mbps    Bell Mobility - Montréal, QC

Vancouver, BC    83.49 ms    N/A     799.70 Mbps    360.88 Mbps    TELUS - Vancouver, BC
Calgary, AB      59.25 ms    N/A     77.07 Mbps     25.17 Mbps     Shaw Communications - Calgary, AB
Winnipeg, MB     41.94 ms    0.0%    287.59 Mbps    34.87 Mbps     Voyageur Internet - Winnipeg, MB
Toronto, ON      8.43 ms     0.0%    703.13 Mbps    693.91 Mbps    Bell Canada - Toronto, ON
Montreal, QC     55.63 ms    0.0%    385.50 Mbps    485.94 Mbps    Rogers Wireless - Montréal, QC

New York, NY     18.60 ms    0.0%    314.49 Mbps    68.22 Mbps     Surfshark Ltd - New York, NY
Ashburn, VA      13.91 ms    0.0%    254.49 Mbps    90.58 Mbps     Rackdog - Ashburn, VA
Charlotte, NC    26.86 ms    N/A     568.84 Mbps    701.91 Mbps    Windstream - Charlotte, NC
Atlanta, GA      26.42 ms    0.0%    300.25 Mbps    554.63 Mbps    i3D.net - Atlanta, GA
Miami, FL        45.66 ms    0.0%    361.04 Mbps    436.30 Mbps    ReliableSite Hosting - Miami, FL
Dallas, TX       40.58 ms    0.0%    406.51 Mbps    431.03 Mbps    i3D.net - Dallas, TX
Houston, TX      45.43 ms    0.0%    337.63 Mbps    53.92 Mbps     AT&T - Houston, TX
Kansas, MO       34.87 ms    0.0%    217.74 Mbps    56.69 Mbps     Nocix - Kansas City, MO
Minneapolis, MN  38.98 ms    0.0%    191.44 Mbps    40.35 Mbps     US Internet - Minneapolis, MN
Chicago, IL      28.64 ms    0.0%    411.01 Mbps    496.56 Mbps    Enzu.com - Chicago, IL
Cleveland, OH    22.68 ms    N/A     705.58 Mbps    680.72 Mbps    Windstream - Cleveland, OH
Albuquerque, NM  60.33 ms    N/A     423.95 Mbps    299.40 Mbps    Comcast - Albuquerque, NM
Denver, CO       48.42 ms    0.0%    453.73 Mbps    547.28 Mbps    T-Mobile Fiber | Intrepid - Denver, CO
Portland, OR     77.84 ms    N/A     949.26 Mbps    27.17 Mbps     CenturyLink - Portland, OR
Las Vegas, NV    73.81 ms    N/A     78.22 Mbps     33.40 Mbps     Dish Wireless - Las Vegas, NV
Salt Lake, UT    77.11 ms    N/A     47.18 Mbps     274.66 Mbps    Novva Data Centers - Salt Lake City, UT
Phoenix, AZ      67.84 ms    0.0%    285.41 Mbps    36.93 Mbps     Xiber LLC - Phoenix, AZ
Los Angeles, CA  67.80 ms    0.0%    294.04 Mbps    319.16 Mbps    ReliableSite Hosting - Los Angeles, CA
San Jose, CA     86.80 ms    0.0%    511.81 Mbps    405.37 Mbps    Misaka Network, Inc. - San Jose, CA
Spokane, WA      91.18 ms    0.0%    423.05 Mbps    280.95 Mbps    Crunchbits - Spokane, WA
Seattle, WA      84.03 ms    0.0%    662.45 Mbps    313.70 Mbps    Misaka Network, Inc. - Seattle, WA

Hermosillo, MX   84.72 ms    0.0%    408.72 Mbps    334.80 Mbps    Megacable - Hermosillo
Guadalajara, MX  67.39 ms    0.0%    405.86 Mbps    42.69 Mbps     AT&T México - Guadalajara
Mexico City, MX  70.60 ms    N/A     424.98 Mbps    386.61 Mbps    INFINITUM - Mexico City
---------------------------------------------------------------------------
Avg DL Speed       : 420.04 Mbps
Avg UL Speed       : 312.55 Mbps

Total DL Data      : 17.83 GB
Total UL Data      : 10.49 GB
Total Data         : 28.32 GB
---------------------------------------------------------------------------
Duration           : 13 min 55 sec
System Time        : 18/09/2024 - 10:30:49 IST
Total Script Runs  : 81340
---------------------------------------------------------------------------
Result             : https://result.nws.sh/r/1726635083_P6NU18_NA.txt
---------------------------------------------------------------------------

Sample Output (All Regions)

NA : https://result.nws.sh/r/1726636198_ZB7UZ4_NA.txt
SA : https://result.nws.sh/r/1726636253_DOOLEN_SA.txt
EU : https://result.nws.sh/r/1726636063_M5C2V5_EU.txt
Asia : https://result.nws.sh/r/1726636719_94JGP0_ASIA.txt
Africa : https://result.nws.sh/r/1726635505_DDM2VB_AFRICA.txt
AU : https://result.nws.sh/r/1726635412_6451TY_AU.txt
Middle East : https://result.nws.sh/r/1726637205_6D2MTS_MIDDLE-EAST.txt
India : https://result.nws.sh/r/1726636009_9Q49NL_INDIA.txt
China : https://result.nws.sh/r/1694528635_EI46XX_CHINA.txt
Iran : https://result.nws.sh/r/1726636450_GZ5PBE_IRAN.txt
Indonesia : https://result.nws.sh/r/1695397374_P9DYIL_INDONESIA.txt
Russia : https://result.nws.sh/r/1726589517_CS2RMK_RUSSIA.txt

Bandwidth Usage

The script usually takes around 10-15 minutes to complete execution for global speedtest.
Data usage is hard to estimate since it is completely dependant on the connection and location.

However, below is a very rough estimate - based on a few tests on different networks.

Port Speed (DL/UL) Data Used Country Test Region
10Gbps Symmetric ~130GB SG GLOBAL
5Gbps Symmetric ~60GB KR GLOBAL
1Gbps Symmetric ~40GB US GLOBAL
750Mbps Symmetric ~35GB DE GLOBAL
500Mbps Symmetric ~25GB IN GLOBAL
100Mbps Symmetric ~6GB US GLOBAL
2Gbps/250Mbps ~50GB DE GLOBAL
1Gbps/250Mbps ~35GB CA GLOBAL
10Gbps Symmetric ~440GB DE EU
10Gbps Symmetric ~400GB NL EU
1Gbps Symmetric ~50GB UK EU
10Gbps Symmetric ~240GB SG ASIA
10Gbps Symmetric ~150GB SG INDIA
1Gbps Symmetric ~55GB US NA

Donations

If you'd like to show your support or appreciation for this project, consider making a donation. Your generosity is greatly appreciated!

XMR
42whZjNSwLSZ7vtYXwUTUZd8xmNWa8EzYhfCBDYMP5jkgn3orztgUjvaZ5CCZuWqmaPgTMBRFdVASjesq3g4KWfKEEqwgbZ

LTC
LRisSqwatDjNDY5Cf7QNcKKjk89riq4VbX