Skip to content

Commit 0d0df89

Browse files
authored
Update readme.md
1 parent 1d33444 commit 0d0df89

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

readme.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
## 功能
55
* 利用IO复用技术Epoll与线程池实现多线程的Reactor高并发模型;
66
* 利用正则与状态机解析HTTP请求报文,实现处理静态资源的请求;
7-
* 利用标准库容器封装char,实现自动增长的缓冲区,基于小根堆实现的定时器,关闭超时的非活动连接;
7+
* 利用标准库容器封装char,实现自动增长的缓冲区;
8+
* 基于小根堆实现的定时器,关闭超时的非活动连接;
89
* 利用单例模式与阻塞队列实现异步的日志系统,记录服务器运行状态;
910
* 利用RAII机制实现了数据库连接池,减少数据库连接建立与关闭的开销,同时实现了用户注册登录功能。
1011

@@ -80,6 +81,9 @@ make
8081
## 压力测试
8182
![image-webbench](https://github.com/markparticle/WebServer/blob/master/readme.assest/%E5%8E%8B%E5%8A%9B%E6%B5%8B%E8%AF%95.png)
8283
```bash
84+
./webbench-1.5/webbench -c 100 -t 10 http://ip:port/
85+
./webbench-1.5/webbench -c 1000 -t 10 http://ip:port/
86+
./webbench-1.5/webbench -c 5000 -t 10 http://ip:port/
8387
./webbench-1.5/webbench -c 10000 -t 10 http://ip:port/
8488
```
8589
* 测试环境: Ubuntu:19.10 cpu:i5-8400 内存:8G

0 commit comments

Comments
 (0)