Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
youngyangyang04 committed Jan 15, 2025
1 parent 1c4ffb0 commit dc80164
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## 运行环境

Ubuntu 20.04 LTS
Ubuntu 22.04 LTS

## 编译指令

Expand All @@ -26,6 +26,9 @@ g++ *.cpp -std=c++17 -o main -ldl -lpthread
```shell
./main
```
如图:

![](./pics/run1.jpg)

### 测试工具的使用:
在ubuntu安装
Expand All @@ -40,12 +43,23 @@ ab -V
```

### 通过测试工具运行项目:

**注意别忘记启动main可执行程序,并且额外开一个窗口执行以下内容**

测试工具apache的命令使用的是:

```shell
ab -n 100000 -c 1000 -k http://127.0.0.1:8080(自己设置端口)/ 当然也可以不使用k参数。
ab -n 100 -c 10 http://127.0.0.1:8080/
```

如图:
![](./pics/run2.jpg)

* -n 连接数
* -c 并发数

可以根据自己的服务器的CPU数量,适当调整 测试连接数 和 并发数的数量。

## 主要模块介绍

### 协程类
Expand Down
Binary file added pics/run1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pics/run2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dc80164

Please sign in to comment.