# 一键测试脚本bench.sh

经过几个版本的演化，一键测试脚本 bench.sh 已经几乎全面适用于各种 Linux 发行版的网络（下行）和 IO 测试。 并将测试结果以较为美观的方式显示出来。

**总结一下 bench.sh 特点：**

1、显示当前测试的各种系统信息； 2、取自世界多处的知名数据中心的测试点，下载测试比较全面； ~~3、支持 IPv6 下载测速；~~ 4、IO 测试三次，并显示平均值。

再配合 [unixbench.sh](https://teddysun.com/245.html) 脚本测试，即可全面测试 VPS 的性能。

**使用方法：** **命令1：**

```
wget -qO- bench.sh | bash
```

或者

```
curl -Lso- bench.sh | bash
```

**命令2：**

```
wget -qO- 86.re/bench.sh | bash
```

或者

```
curl -so- 86.re/bench.sh | bash
```

**备注：** bench.sh 既是脚本名，同时又是域名。所以不要怀疑我写错了或者你看错了。

**下载地址：** <https://github.com/teddysun/across/blob/master/bench.sh>

2020 年 07 月 29 日更新： \1. 修改：测速为 speedtest 提供的，区分上传下载，更实用； \2. 增加：TCP Congestion Control；虚拟化方式；IP 信息等。

下图所示的是我的 [Vultr](https://qiu.sh/vultr) 的评测数据：&#x20;

![](/files/cHWc2UxQOXr1RXBGbLHZ)

2018 年 01 月 07 日更新： 修改：显示信息的颜色，分门别类，更容易区分。

下图所示的是我的 KS3C 百兆独服的评测数据：

![](/files/T45zhxyjFWskLmEJix3d)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://close.gitbook.io/yun-wei-bi-ji/centos/shell/yi-jian-ce-shi-jiao-ben-bench.sh.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
