Repository navigation
fix: 对齐网络基准工作量并校正性能结论 - #81
Merged
Merged
Conversation
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
原“单向吞吐”服务端仍回显,而裸 TCP 只计字节,直接相减无法隔离框架开销。本 PR 将单向和逐条 RTT 放入共享驱动:两种传输都执行同一 Codec/流式 Framer、拥有数据的消息物化和完整内容校验。每批256条;单向等待服务端全部消费,RTT每条等待解码校验回显。未修改框架实现或依赖。
覆盖72组:2场景 × 2 Framer × 64B/1KB/64KB × Bytes/StringSpan/StringAlloc × DirectTcp/StreamFrame。Socket读回两侧收发64KiB、NoDelay=false、KeepAlive=false。直接TCP仍预知帧长、逐帧ReadExactly,框架仍使用队列/Pipe/后台收发;缓冲、调度及系统调用差异明确披露,差值不称纯框架税。
测量源码 e696028;完整证据含逐迭代JSON、BDN原始日志、CSV、环境、命令与SHA256。正式串行运行各36组,1 launch/3 warmup/10 actual/250ms目标,保留离群点;每组均有10个有效样本。开发笔记本单机回环,存在显著噪声与最短迭代提示(单向71.947ms、RTT98.815ms),不据此声称跨时段稳定百分比。分配结果支持解释字节/字符串物化和中间数组的真实工作,不能证明框架零分配。
双语README与新bench英文说明撤回旧的不匹配比较,限定流式“零拷贝”指省去一次负载到帧缓冲的整体复制,修正筛选类名及2.6ns×100000/s=260µs/s;CHANGELOG Unreleased同步。
验证:
Closes #70