File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 44## 功能
55* 利用IO复用技术Epoll与线程池实现多线程的Reactor高并发模型;
66* 利用正则与状态机解析HTTP请求报文,实现处理静态资源的请求;
7- * 利用标准库容器封装char,实现自动增长的缓冲区,基于小根堆实现的定时器,关闭超时的非活动连接;
7+ * 利用标准库容器封装char,实现自动增长的缓冲区;
8+ * 基于小根堆实现的定时器,关闭超时的非活动连接;
89* 利用单例模式与阻塞队列实现异步的日志系统,记录服务器运行状态;
910* 利用RAII机制实现了数据库连接池,减少数据库连接建立与关闭的开销,同时实现了用户注册登录功能。
1011
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
You can’t perform that action at this time.
0 commit comments