跳转到正文
arknet

UDP 负载对比

查看 Markdown

测量日期为 2026-10-12;合计 216 次运行、62 个有效配置和 10 个失败配置。机器、源码与缓冲诊断。

16 客户端;64/1024/16384 字节,窗口 1/4/16/64;每配置三次。

无额外业务计算

往返吞吐量

双向应用负载吞吐量

单消息 p99 RTT

  • Standalone Asio: 1024 字节:吞吐量中位数最高 1 个 io_context / 1 个线程、窗口 4;p99 中位数最低 1 个 io_context / 1 个线程、窗口 1。
  • Boost.Asio: 1024 字节:吞吐量中位数最高 1 个 io_context / 1 个线程、窗口 1;p99 中位数最低 1 个 io_context / 1 个线程、窗口 1。

完整数值 JSON(含 p95、运行范围与失败记录)

失败配置

依赖方案 / 模式 消息字节 / 窗口 线程模型 业务计算 失败信息
Boost.Asio / 回调 16384 / 16 4 个 io_context 各 1 个线程 无额外业务计算 #1: benchmark failed with exit code 1; UDP 丢失报文: 1, 等待在途消息完成超时: 1, 预热错误: 2; #2: benchmark failed with exit code 1; UDP 丢失报文: 1, 等待在途消息完成超时: 1; #3: benchmark failed with exit code 1; UDP 丢失报文: 1, 等待在途消息完成超时: 1, 预热错误: 2
Boost.Asio / 回调 16384 / 16 1 个 io_context / 4 个线程 无额外业务计算 #1: benchmark failed with exit code 1; UDP 丢失报文: 1, 等待在途消息完成超时: 1, 预热错误: 2; #2: benchmark failed with exit code 1; UDP 丢失报文: 1, 等待在途消息完成超时: 1; #3: benchmark failed with exit code 1; UDP 丢失报文: 1, 等待在途消息完成超时: 1
Boost.Asio / 回调 16384 / 64 4 个 io_context 各 1 个线程 无额外业务计算 #1: benchmark failed with exit code 1; UDP 丢失报文: 769, 等待在途消息完成超时: 1, 预热错误: 769; #2: benchmark failed with exit code 1; UDP 丢失报文: 769, 等待在途消息完成超时: 1, 预热错误: 769; #3: benchmark failed with exit code 1; UDP 丢失报文: 769, 等待在途消息完成超时: 1, 预热错误: 769
Boost.Asio / 回调 16384 / 64 1 个 io_context / 1 个线程 无额外业务计算 #1: benchmark failed with exit code 1; UDP 丢失报文: 767, 等待在途消息完成超时: 1, 预热错误: 768; #2: benchmark failed with exit code 1; UDP 丢失报文: 767, 等待在途消息完成超时: 1, 预热错误: 768; #3: benchmark failed with exit code 1; UDP 丢失报文: 767, 等待在途消息完成超时: 1, 预热错误: 768
Boost.Asio / 回调 16384 / 64 1 个 io_context / 4 个线程 无额外业务计算 #1: benchmark failed with exit code 1; UDP 丢失报文: 769, 等待在途消息完成超时: 1, 预热错误: 769; #2: benchmark failed with exit code 1; UDP 丢失报文: 769, 等待在途消息完成超时: 1, 预热错误: 770; #3: benchmark failed with exit code 1; UDP 丢失报文: 769, 等待在途消息完成超时: 1, 预热错误: 770
Standalone Asio / 回调 16384 / 16 4 个 io_context 各 1 个线程 无额外业务计算 #1: benchmark failed with exit code 1; UDP 丢失报文: 1, 等待在途消息完成超时: 1, 预热错误: 2; #2: benchmark failed with exit code 1; UDP 丢失报文: 1, 等待在途消息完成超时: 1, 预热错误: 2; #3: benchmark failed with exit code 1; UDP 丢失报文: 1, 等待在途消息完成超时: 1
Standalone Asio / 回调 16384 / 16 1 个 io_context / 4 个线程 无额外业务计算 #1: benchmark failed with exit code 1; UDP 丢失报文: 1, 等待在途消息完成超时: 1; #2: benchmark failed with exit code 1; 预热错误: 2; #3: benchmark failed with exit code 1; UDP 丢失报文: 1, 等待在途消息完成超时: 1, 预热错误: 2
Standalone Asio / 回调 16384 / 64 4 个 io_context 各 1 个线程 无额外业务计算 #1: benchmark failed with exit code 1; UDP 丢失报文: 769, 等待在途消息完成超时: 1, 预热错误: 770; #2: benchmark failed with exit code 1; UDP 丢失报文: 768, 等待在途消息完成超时: 1, 预热错误: 770; #3: benchmark failed with exit code 1; UDP 丢失报文: 769, 等待在途消息完成超时: 1, 预热错误: 770
Standalone Asio / 回调 16384 / 64 1 个 io_context / 1 个线程 无额外业务计算 #1: benchmark failed with exit code 1; UDP 丢失报文: 767, 等待在途消息完成超时: 1, 预热错误: 768; #2: benchmark failed with exit code 1; UDP 丢失报文: 767, 等待在途消息完成超时: 1, 预热错误: 768; #3: benchmark failed with exit code 1; UDP 丢失报文: 767, 等待在途消息完成超时: 1, 预热错误: 768
Standalone Asio / 回调 16384 / 64 1 个 io_context / 4 个线程 无额外业务计算 #1: benchmark failed with exit code 1; UDP 丢失报文: 769, 等待在途消息完成超时: 1, 预热错误: 770; #2: benchmark failed with exit code 1; UDP 丢失报文: 769, 等待在途消息完成超时: 1, 预热错误: 769; #3: benchmark failed with exit code 1; UDP 丢失报文: 769, 等待在途消息完成超时: 1, 预热错误: 770

指标、统计口径与复现

导航

输入关键词开始搜索…

↑↓ 移动↵ 选择Esc 关闭