Tsukikage7 commented on issue #820: URL: https://github.com/apache/dubbo-go-pixiu/issues/820#issuecomment-5204149139
补充 Triple 实测(单独运行 suite,避免并行端口冲突): ### Triple via Pixiu(Median) | Method | Baseline | 优化后 | 提升 | | --- | --- | --- | --- | | GetUser | 2.0ms | 600µs | 3.3x | | GetUsers | 1.6ms | 700µs | 2.3x | | GetUserByName | 1.5ms | 600µs | 2.5x | | SayHello | 1.5ms | 600µs | 2.5x | ### 根因说明 之前 `go test ./...` 下 Triple suite 报 `connection refused: 8881`,排查结论是 **benchmark 测试自身的并发问题**,与实现无关:三个 suite 并行运行时各自启动一个 pixiu,而每个 pixiu 都会在 **18380** 启动 reload HTTP server,后启动者 bind 失败退出。单独运行 `go test ./triple_suite/...` 即通过。 ### 汇总 | Protocol | Baseline Median | 优化后 Median | 提升 | | --- | --- | --- | --- | | gRPC | 1.4–1.9ms | 0.6–0.8ms | ~2.2x | | Triple | 1.5–2.0ms | 0.5–0.7ms | ~2.5x | | Dubbo | 500 Internal Server Error | 0.4–0.5ms | 修复 | 所有对比均为同一 benchmark 代码、同机、500 samples/方法,改动仅涉及 pkg/ 下实现,未触碰 tools/benchmark 测量代码。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
