nodejs / nodejs/node

benchmark: http simple connect timeout on macOS

オープン
#32,337 コメント 6 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

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?
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. リポジトリをフォークし、ブランチを切って変更します。
  4. 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 を短くまとめたダイジェスト。