speedtest-centos网络测速(网速)

《speedtest-centos网络测速(网速)》

安装pip

#1、安装python-pip
yum -y install epel-release
yum -y install python-pip
#升级pip
pip3 install --upgrade pip

安装speedtest

# pip3 install speedtest-cli

测速

# speedtest
《speedtest-centos网络测速(网速)》
# speedtest
Retrieving speedtest.net configuration...
Testing from Multacom Corporation (154.202.57.215)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by H&B Communications (Holyrood, KS) [106.27 km]: 228.39 ms
Testing download speed................................................................................
Download: 84.30 Mbit/s
Testing upload speed................................................................................................
Upload: 9.98 Mbit/s
# wget -qO- 86.re/bench.sh | bash
----------------------------------------------------------------------
CPU model            : Intel(R) Xeon(R) CPU E5-2660 v2 @ 2.20GHz
Number of cores      : 4
CPU frequency        : 2199.995 MHz
Total size of Disk   : 48.0 GB (1.5 GB Used)
Total amount of Mem  : 919 MB (171 MB Used)
Total amount of Swap : 2047 MB (0 MB Used)
System uptime        : 0 days, 0 hour 38 min
Load average         : 0.00, 0.02, 0.08
OS                   : CentOS 7.5.1804
Arch                 : x86_64 (64 Bit)
Kernel               : 3.10.0-862.el7.x86_64
----------------------------------------------------------------------
I/O speed(1st run)   : 241 MB/s
I/O speed(2nd run)   : 241 MB/s
I/O speed(3rd run)   : 240 MB/s
Average I/O speed    : 240.7 MB/s
----------------------------------------------------------------------
Node Name                       IPv4 address            Download Speed
CacheFly                        205.234.175.175         27.8MB/s      
Linode, Tokyo2, JP              139.162.65.37           25.7MB/s      
Linode, Singapore, SG           139.162.23.4            26.7MB/s      
Linode, London, UK              176.58.107.39           7.22MB/s      
Linode, Frankfurt, DE           139.162.130.8           10.0MB/s      
Linode, Fremont, CA             50.116.14.9             11.2MB/s      
Softlayer, Dallas, TX           173.192.68.18           800KB/s       
Softlayer, Seattle, WA          67.228.112.250          11.5MB/s      
Softlayer, Frankfurt, DE        159.122.69.4            9.64MB/s      
Softlayer, Singapore, SG        119.81.28.170           29.9MB/s      
Softlayer, HongKong, CN         119.81.130.170          33.3MB/s      
----------------------------------------------------------------------

查看网卡是千兆还是百兆

# ifconfig
# ethtool enp1s0
Settings for enp1s0:
	Supported ports: [ TP MII ]
	Supported link modes:   10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Half 1000baseT/Full 
	Supported pause frame use: Symmetric Receive-only
	Supports auto-negotiation: Yes
	Supported FEC modes: Not reported
	Advertised link modes:  10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Half 1000baseT/Full 
	Advertised pause frame use: Symmetric Receive-only
	Advertised auto-negotiation: No
	Advertised FEC modes: Not reported
	Speed: 100Mb/s    <<<<<<<百兆
	Duplex: Full    <<<<全双工模式
	Port: MII
	PHYAD: 0
	Transceiver: internal
	Auto-negotiation: off
	Supports Wake-on: pumbg
	Wake-on: d
	Current message level: 0x00000033 (51)
			       drv probe ifdown ifup
	Link detected: yes
点赞

发表评论

邮箱地址不会被公开。 必填项已用*标注