benchmark: http simple connect timeout on macOS
未关闭
还没有人认领这个 Issue。
benchmark
- 主要语言
- JavaScript
- 星标
- 122k
- 派生
- 37.4k
- 平均合并
- 4 天 3 小时
- 30 天内合并 PR
- 272
描述
- Version: v13.11.0
- Platform: macOS Catalina
- Subsystem: benchmark
What steps will reproduce the bug?
node benchmark/http/simple.js
How often does it reproduce? Is there a required condition?
Always reproduces.
What is the expected behavior?
It should run without timeout error on macOS.
What do you see instead?
Additional information
I found that it works when I change duration from 5 to 10. It could be some problem with frequently port binding.
const bench = common.createBenchmark(main, {
// Unicode confuses ab on os x.
type: ['bytes', 'buffer'],
len: [4, 1024, 102400],
chunks: [1, 4],
c: [50, 500],
chunkedEnc: [1, 0],
duration: 5 // replace with 10, it works
});
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先在 macOS 上运行 node benchmark/http/simple.js,并检查 benchmark/http/simple.js,尤其是包含 duration: 5 的基准测试配置。调查报告的超时问题以及可能频繁绑定端口的行为;当基准测试在 macOS 上以原始时长运行且不发生超时时,工作即完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- performance
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 57/100