GitHub user lizining1231 added a comment to the discussion: [OSPP 2026] Triple 协议性能分析与优化
近几轮压测出现未控制变量、理解偏差导致数据有效性低的问题复盘: - triple协议不需要显示设置,protocol.WithTriple()是设置triple协议,triple\_protocol.WithTriple()是换编码为connect不是换协议为triple,之前因为读到wire层注释`clients use the GRPC protocol. Add triple_protocol.WithTriple().`误认为框架层默认协议是grpc,dubbo-go的默认协议是triple,协议计入变量 - connect编码的数据与grpc编码的数据不同,Triple wire 是connect编码,但是triple协议的默认编码为grpc,编码计入变量 - 根据代码现有行为,dubbo-go默认开gzip,grpc端默认不开gzip,gzip计入变量 - 间隙10s无法使得电脑状态恢复,虽然cpu没有降频其他环境信息也无变化,连续压测下会出现先测的绝对值高后测的低、早上性能高晚上性能低,测试时间位置、测试轮数、测试顺序应计入变量 - 同一轮测试存在一定抖动幅度,不同批次的测试,基线和优化均容易取到抖动下的中位数,无法复现性能收益百分比的情况,例如同一个duplex测五轮P99指标, 第一批:20.66,17.25,17.15,18.73,17.10 第二批:22.08,20.84,22.22,18.57,19.92 可能需要提升轮数、提升间隙时间,并注意原始数据 GitHub link: https://github.com/apache/dubbo-go/discussions/3673#discussioncomment-18224494 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
