mirror of
https://github.com/caozhiyi/CppNet.git
synced 2026-01-12 00:19:01 +08:00
update ab bench doc,
This commit is contained in:
@@ -21,7 +21,7 @@ Compared with `Muduo` on Linux,because Linux support `REUSE_PORT` and `EPOLLEX
|
||||
<p align="left"><img width="896" src="../image/linux_apache_ab_bench.png" alt="linux_apache_ab_bench"></p>
|
||||
|
||||
In the picture `cppnet_1` used `REUSE_PORT`,`cppnet_2` used `EPOLLEXCLUSIVE`.
|
||||
When use `REUSE_PORT`, the overall efficiency is basically the same as that of `muduo`. When the concurrency is less than 1000, `cppnet` performs better, When more than 1000, `muduo` performed better.
|
||||
When use `REUSE_PORT`, efficiency is slightly better than `muduo`.
|
||||
When use `EPOLLEXCLUSIVE`, the overall performance is better than `muduo`(muduo does not support the `EPOLLEXCLUSIVE` setting).
|
||||
|
||||
### Windows
|
||||
|
||||
@@ -21,7 +21,7 @@ ab -kc[1-10000] -n100000 http://127.0.0.1:8921/hello
|
||||
<p align="left"><img width="896" src="../image/linux_apache_ab_bench.png" alt="linux_apache_ab_bench"></p>
|
||||
|
||||
图中`cppnet_1`为使用`REUSE_PORT`,`cppnet_2`为使用`EPOLLEXCLUSIVE`。
|
||||
使用`REUSE_PORT`时,整体效率上与`muduo`基本持平,在1000并发以下时,`cppnet`表现更优,1000发以上时,`muduo`表现更优。
|
||||
使用`REUSE_PORT`时,整体效率稍稍优于`muduo`。
|
||||
在使用`EPOLLEXCLUSIVE`时,性能整体都优于`muduo`(muduo尚未支持`EPOLLEXCLUSIVE`设置)。
|
||||
|
||||
### Windows
|
||||
|
||||
Reference in New Issue
Block a user