19 条评论 (19 条评论)9 个反应 (9 个反应)0 位负责人 (0 位负责人)Go19,008 个派生 (19,008 个派生)batch import
FeatureRequestNeedsFixPerformancehelp wanted
仓库指标
- 星标
- 133,883 个星标 (133,883 个星标)
- PR 合并指标
- 30 天内没有已合并 PR (30 天内没有已合并 PR)
描述
Look into making httptest.Server have a way to use in-memory networking (i.e. net.Pipe) instead of localhost TCP. Might be faster/cheaper and not hit ephemeral port issues under load?
贡献者指南
- 研究方向
- 此议题提议为 httptest.Server 添加一个内存网络选项。首先,请查阅 Go 源码中 httptest.Server 的当前实现(net/http/httptest/server.go)。探索 net.Pipe 的工作原理,并考虑其对测试服务器的设计影响。查看议题讨论串(评论 1-19)以了解先前的想法和顾虑。目前没有关联的 PR,因此实现是开放的。重点关注性能基准测试以及 TCP 与内存网络之间的权衡。
- 技术栈
- go
- 领域
- testingperformance
- 议题类型
- 功能
- 前置要求
- Go programmingnet/http/httptest packagenet.PipeGo testing