benchmark: http simple connect timeout on macOS
オープン
まだ誰も着手していません。
benchmark
- 主要言語
- JavaScript
- スター
- 122k
- フォーク
- 37.3k
- 平均マージ
- 4日 2時間
- マージ済み PR(30日)
- 283
説明
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず macOS で node benchmark/http/simple.js を実行し、benchmark/http/simple.js を調査します。特に duration: 5 を指定したベンチマーク設定を確認してください。報告されているタイムアウトと、ポートバインドが頻繁に発生する可能性のある挙動を調査します。macOS でベンチマークが元の実行時間でタイムアウトせずに実行されれば、作業は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- performance
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 57/100