Table of Contents
一、路由器跑分
openssl 的加密速度测试
单核跑分代码
openssl speed -evp aes-256-gcm

root@VLEDE:~# openssl speed -evp aes-256-gcm
Doing aes-256-gcm for 3s on 16 size blocks: 38012914 aes-256-gcm's in 2.85s
Doing aes-256-gcm for 3s on 64 size blocks: 26785294 aes-256-gcm's in 2.88s
Doing aes-256-gcm for 3s on 256 size blocks: 11009563 aes-256-gcm's in 2.84s
Doing aes-256-gcm for 3s on 1024 size blocks: 3186573 aes-256-gcm's in 2.74s
Doing aes-256-gcm for 3s on 8192 size blocks: 429179 aes-256-gcm's in 2.83s
Doing aes-256-gcm for 3s on 16384 size blocks: 208606 aes-256-gcm's in 2.72s
OpenSSL 1.1.1n 15 Mar 2022
built on: Tue May 3 18:43:26 2022 UTC
options:bn(64,64) rc4(16x,int) des(int) aes(partial) blowfish(ptr)
compiler: x86_64-openwrt-linux-musl-gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -O3 -DPIC -fpic -ffunction-sections -fdata-sections -znow -zrelro -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DNDEBUG
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
aes-256-gcm 213405.83k 595228.76k 992411.31k 1190894.44k 1242344.30k 1256544.38k
多核跑分代码
openssl speed -evp chacha20-poly1305

root@VLEDE:~# openssl speed -evp chacha20-poly1305
Doing chacha20-poly1305 for 3s on 16 size blocks: 25655359 chacha20-poly1305's in 2.83s
Doing chacha20-poly1305 for 3s on 64 size blocks: 13069497 chacha20-poly1305's in 2.86s
Doing chacha20-poly1305 for 3s on 256 size blocks: 5028713 chacha20-poly1305's in 2.83s
Doing chacha20-poly1305 for 3s on 1024 size blocks: 1347897 chacha20-poly1305's in 2.85s
Doing chacha20-poly1305 for 3s on 8192 size blocks: 171652 chacha20-poly1305's in 2.86s
Doing chacha20-poly1305 for 3s on 16384 size blocks: 85111 chacha20-poly1305's in 2.84s
OpenSSL 1.1.1n 15 Mar 2022
built on: Tue May 3 18:43:26 2022 UTC
options:bn(64,64) rc4(16x,int) des(int) aes(partial) blowfish(ptr)
compiler: x86_64-openwrt-linux-musl-gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -O3 -DPIC -fpic -ffunction-sections -fdata-sections -znow -zrelro -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DNDEBUG
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
chacha20-poly1305 145047.97k 292464.27k 454894.18k 484297.03k 491668.95k 491006.56k
二、jcnf 常用脚本工具包
玩机,是不是有很多命令或者脚本记不住,因此我整理了一些我个人常用的脚本。
github链接:https://github.com/Netflixxp/jcnf-box
使用说明
安装依赖(新机器必须运行一次,此后无需运行)
yum install -y curl wget 2> /dev/null || apt install -y curl wget
安装并运行脚本
wget -O jcnfbox.sh https://raw.githubusercontent.com/Netflixxp/jcnf-box/main/jcnfbox.sh && chmod +x jcnfbox.sh && clear && ./jcnfbox.sh

三、VPS测速
1、SuperBench.sh
老鬼大佬的SuperBench测试脚本
Github:https://github.com/oooldking/script/blob/master/superbench.sh
这个脚本是在基于秋水大佬脚本的基础上,加入了独服通电时间,服务器虚拟化架构等内容
特点:
- 改进了显示的模式,基本参数添加了颜色,方面区分与查找。
- I/O测试,更改了原来默认的测试的内容,采用小文件,中等文件,大文件,分别测试IO性能,然后取平均值。
- 速度测试替换成了 Superspeed 里面的测试,第一个默认节点是,Speedtest 默认,其他分别测试到中国电信,联通,移动,各三个不同地区的速度。
wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
curl -Lso- -no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash

2、Bench.sh
秋水逸冰大佬的写的Bench.sh脚本
特点
- 显示当前测试的各种系统信息;
- 取自世界多处的知名数据中心的测试点,下载测试比较全面;
- 支持 IPv6 下载测速;
- IO 测试三次,并显示平均值。
wget -qO- bench.sh | bash
curl -Lso- bench.sh | bash
wget -qO- 86.re/bench.sh | bash
curl -so- 86.re/bench.sh | bash


3、Zbench
脚本由漏水和kirito,基于Oldking大佬 的 SuperBench,然后加入Ping以及路由测试的功能,还能生成测评报告,分享给其他人查看测评数据
使用方法
中文版
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh
英文版
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench.sh && bash ZBench.sh

4、superspeed
官网地址:点击进入
主要:
bash <(curl -Lso- https://git.io/superspeed_uxh)
备用:
bash <(curl -Lso- https://raw.githubusercontent.com/uxh/superspeed/master/superspeed.sh)
2020年06月19日
八、回程测速
1、BestTrace脚本测试工具
使用方法说明:
既然是脚本测试回程路由,我们就需要连接SSH,登录SSH后,输入以下命令进行测试,回车后,脚本会自动检测VPS到国内电信、移动、联通和教育网四网的回程路由。
wget -qO- git.io/besttrace | bash
wget -qO- git.io/autobesttrace | bash
2、三网回程测试脚本
curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash
九、去程测速
1、路由追踪
1.1、ipip测试
当然想看其他地方到服务器到线路情况,可以用这个网站来看看 https://tools.ipip.net/traceroute.php

服务器网络线路 亚太地区的服务器需要注意的是线路是否绕路,很多日本的服务器到国内的线路是绕路走其他地区的,而不是直接直连到国内。我们测一下路由信息就可以看到线路是否绕路。 一般来说买服务器,下单付钱之前,商家都会给一个相应机房的测试ip,这里我们测一个甲骨文东京的服务器,看看是否会绕路。 这边测试线路用到的工具是:BestTrace
1.2、webkaka测试
路由跟踪在线地址:http://www.webkaka.com/Tracert.aspx
可以看到我们本地到服务器的线路是直连的,并没有绕路,说明线路不错。
4、站长工具
想看其他地方到服务器的ping值情况,可以用用站长工具ping一下,
