nodejs / nodejs/node

benchmark: http simple connect timeout on macOS

未关闭
#32,337 6 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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?
Screen Shot 2020-03-18 at 11 58 44 AM
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
});

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。