Skip to content

yeshihao-git/reactor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

简介

这是2025重写的reactor服务器,基于reactor模型实现高并发TCP服务器框架,并在此框架上封装了 EchoServer;经测试达到百万级QPS

运行

  1. 编译:make -j(nproc)
  2. 运行客户端:./echoserver <输入IP> <输入端口>
  3. 运行服务端:./client <输入IP> <输入端口>

测试

  1. 运行服务端:./client <输入IP> <输入端口>
  2. 运行客户端:bash ./clients.sh 注:客户端默认IP端口为:192.168.150.128 5085

测试结果

测试环境:虚拟机

4核CPU、2g内存 Ubuntu系统

测试方法与结果

sh脚本中在后台起了30个客户端,每个客户端发送10万个请求 -> QPS约等于10万

测试环境:autodl云服务器

32核CPU 120g内存 Ubuntu系统

测试方法与结果

sh脚本中在后台起了30个客户端,每个客户端发送100万个请求,关闭工作线程池,使用IO线程来收发数据(IO线程数改为30),因为Echo不涉及计算密集型任务 -> QPS约等于100万

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors