Comprehensive Speedtest Script | nws.sh | Share your bench


Hi All, Many of you are probably familiar with this script; it was earlier called network-speed.xyz

If you aren't, follow along.

I present to you yet another damn speed test script. I understand there are many speed test scripts out there, but ... well I did it anyway.
I built this on top of Teddysuns bench.sh - adding my code and removing unnecessary stuff.

All information can be found at https://nws.sh

Thanks, and shout out to our sponsors: Crunchbits ( @crunchbits ) for sponsoring the Hosting Infrastructure and IncogNET ( @MannDude ) for sponsoring the new domain.

Test Locations * North America * South America * Europe * Asia * Africa * Australia * GCC Middle East * India * China * Iran * Indonesia

* More coming soon!

Usage

For Global Test

curl -sL nws.sh | bash

wget -qO- nws.sh | bash

For Regional Test

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

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

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

Global Test Sample Output

---------------------------------- nws.sh ---------------------------------
      A simple script to bench network performance using speedtest-cli
---------------------------------------------------------------------------
 Version            : v2024.05.30
 Global Speedtest   : wget -qO- nws.sh | bash
 Region Speedtest   : wget -qO- nws.sh | bash -s -- -r <region>
---------------------------------------------------------------------------
 Basic System Info
---------------------------------------------------------------------------
 CPU Model          : Intel(R) Xeon(R) Gold 6152 CPU @ 2.10GHz
 CPU Cores          : 16 @ 2095.030 MHz
 CPU Cache          : 30976 KB
 AES-NI             : ✔ Enabled
 VM-x/AMD-V         : ✔ Enabled
 Total Disk         : 875.8 GB (92.2 GB Used)
 Total RAM          : 58.9 GB (666.5 MB Used)
 Total Swap         : 4.0 GB (1.5 MB Used)
 System uptime      : 26 days, 2 hour 54 min
 Load average       : 0.19, 0.12, 0.09
 OS                 : Ubuntu 22.04.4 LTS
 Arch               : x86_64 (64 Bit)
 Kernel             : 5.15.0-105-generic
 Virtualization     : QEMU
 TCP Control        : cubic
---------------------------------------------------------------------------
 Basic Network Info
---------------------------------------------------------------------------
 Primary Network    : IPv6
 IPv6 Access        : ✔ Online
 IPv4 Access        : ✔ Online
 ISP                : Redoubt Networks
 ASN                : AS400304 Redoubt Networks
 Host               : Redoubt Networks
 Location           : Liberty Lake, Washington-WA, United States
---------------------------------------------------------------------------
 Speedtest.net (Region: GLOBAL)
---------------------------------------------------------------------------
 Location         Latency     Loss    DL Speed       UP Speed       Server

 ISP: Crunchbits, LLC

 Nearest          0.39 ms     0.0%    7890.62 Mbps   10768.74 Mbps  Crunchbits - Spokane, WA

 Kochi, IN        271.88 ms   0.0%    2873.34 Mbps   343.45 Mbps    Asianet Broadband - Cochin
 Bangalore, IN    257.68 ms   0.0%    3003.88 Mbps   346.72 Mbps    Bharti Airtel Ltd - Bangalore
 Chennai, IN      220.20 ms   N/A     3213.23 Mbps   514.14 Mbps    Jio - Chennai
 Mumbai, IN       237.05 ms   0.7%    3096.41 Mbps   335.25 Mbps    i3D.net - Mumbai
 Delhi, IN        404.95 ms   0.3%    1486.74 Mbps   277.45 Mbps    Tata Play Fiber - New Delhi

 Seattle, US      12.01 ms    N/A     7736.08 Mbps   6938.97 Mbps   Comcast - Seattle, WA
 Los Angeles, US  36.54 ms    0.0%    4566.78 Mbps   2089.57 Mbps   ReliableSite Hosting - Los Angeles, CA
 Dallas, US       65.80 ms    0.0%    6043.49 Mbps   1329.34 Mbps   i3D.net - Dallas, TX
 Miami, US        93.53 ms    N/A     3392.36 Mbps   791.19 Mbps    Dish Wireless - Miami, FL
 New York, US     69.77 ms    0.0%    6604.41 Mbps   1532.75 Mbps   GSL Networks - New York, NY
 Toronto, CA      60.34 ms    0.0%    3917.54 Mbps   1469.92 Mbps   Rogers - Toronto, ON
 Mexico City, MX  73.84 ms    N/A     6100.83 Mbps   1211.34 Mbps   INFINITUM - Mexico City

 London, UK       129.25 ms   0.0%    4137.81 Mbps   845.68 Mbps    VeloxServ Communications - London
 Amsterdam, NL    142.90 ms   0.0%    4460.60 Mbps   819.21 Mbps    31173 Services AB - Amsterdam
 Paris, FR        143.29 ms   N/A     4921.82 Mbps   535.40 Mbps    Axione - Paris
 Frankfurt, DE    140.10 ms   0.0%    4319.52 Mbps   651.35 Mbps    Clouvider Ltd - Frankfurt am Main
 Warsaw, PL       152.22 ms   0.0%    4695.73 Mbps   569.83 Mbps    Play - Warszawa
 Bucharest, RO    189.31 ms   0.0%    3964.77 Mbps   484.45 Mbps    Vodafone Romania Fixed – Bucharest - Bucharest
 Moscow, RU       170.47 ms   0.0%    4650.31 Mbps   649.81 Mbps    Aeza.net - Moscow

 Jeddah, SA       397.67 ms   0.7%    3109.42 Mbps   420.03 Mbps    Saudi Telecom Company
 Dubai, AE        304.47 ms   0.0%    2066.29 Mbps   172.96 Mbps    du - Dubai
 Fujairah, AE     313.58 ms   1.3%    2173.24 Mbps   30.91 Mbps     ETISALAT-UAE - Fujairah
 Istanbul, TR     202.32 ms   0.0%    3844.55 Mbps   568.37 Mbps    Turkcell - Istanbul
 Tehran, IR       FAILED

 Tokyo, JP        94.07 ms    0.0%    4462.01 Mbps   935.30 Mbps    IPA CyberLab 400G - Tokyo
 Shanghai, CU-CN  193.44 ms   0.0%    3843.04 Mbps   54.11 Mbps     China Unicom 5G - Shanghai
 Nanjing, CT-CN   524.44 ms           10.89 Mbps     FAILED         China Telecom JiangSu 5G - Nanjing
 Hong Kong, CN    165.74 ms   N/A     3513.10 Mbps   433.69 Mbps    STC - Hong Kong
 Singapore, SG    323.12 ms   0.0%    3175.55 Mbps   290.83 Mbps    i3D.net - Singapore
 Jakarta, ID      FAILED - IP has been rate limited. Try again after 1 hour.
---------------------------------------------------------------------------
 Avg DL Speed       : 4043.97 Mbps
 Avg UL Speed       : 1221.05 Mbps

 Total DL Data      : 153.12 GB
 Total UL Data      : 51.53 GB
 Total Data         : 204.64 GB
---------------------------------------------------------------------------
 Duration           : 15 min 18 sec
 System Time        : 01/06/2024 - 22:18:07 IST
 Total Script Runs  : 45772
---------------------------------------------------------------------------
 Result             : https://result.nws.sh/r/1717259786_YEWRB7_GLOBAL.txt
---------------------------------------------------------------------------

Regional Test Sample Output
NA: https://result.nws.sh/r/1694522045_QVORYM_NA.txt
SA: https://result.nws.sh/r/1694528715_JFU3T1_SA.txt
EU: https://result.nws.sh/r/1694529083_9KFDDK_EU.txt
Asia: https://result.nws.sh/r/1694528694_SIR554_ASIA.txt
Africa: https://result.nws.sh/r/1694537113_747AYT_AFRICA.txt
AU: https://result.nws.sh/r/1694536652_DGXND8_AU.txt
GCC: https://result.nws.sh/r/1694531543_BZ6K6M_MIDDLE-EAST.txt
India: https://result.nws.sh/r/1694530534_3C9IAU_INDIA.txt
China: https://result.nws.sh/r/1694528635_EI46XX_CHINA.txt
Iran: https://result.nws.sh/r/1694528246_6GOL8A_IRAN.txt
Indonesia: https://result.nws.sh/r/1695397374_P9DYIL_INDONESIA.txt

Of course, I am actively developing and updating this regularly, so any feedback and suggestions are welcome!

Please feel free to share your bench's in this thread.


hunterzuo 2024年12月4日 14:56 收藏文档