Add a variant of runBenchmark which also takes iteration range.
まだ誰も着手していません。
- #255 @phadej による — マージされずにクローズ
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 20/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- haskell
- 領域
- performance
調査の方向性
この issue では runBenchmark が挙げられていますが、実装ファイルやテストは特定されていません。まず runBenchmark を見つけ、現在の時間制限がどのように処理されているかを確認してください。概要から想定されるレコードフィールドと停止条件を定義し、その後、反復回数と時間の制限が仕様どおりに適用されることを示すテストを追加してください。
索引モデルが issue の本文から書いたものです。
説明
Currently there is:
runBenchmark :: Benchmarkable -> Double -> IO (Vector Measured, Double)
Run a single benchmark, and return measurements collected while executing it, along with the amount of time the measurement process took.
Double argument is: Lower bound on how long the benchmarking process should take. In practice, this time limit may be exceeded in order to generate enough data to perform meaningful statistical analyses.
I'd like to have a variant where we can specify the optional lower and upper bounds for iteration count (run at least 10 times, no need to run over 100 times).
Lower bound would be great to ensure more statistical significance. Upper bound would allow to avoid running individual benchmark for too long.
I think that then we'd need both lower and upper bound for time as well (current is actually more like soft upper bound, but as there are no end criteria it's also a lower bound).
I think it would best to put these four options into a record, to avoid double-blindness.
In case when no bounds is specified, we could either fail or use some default time bound.
EDIT: summary:
- the end criteria would be in N dimensions: you can stop only when all lower bounds are crossed and at least one upper bound.
- no lower bound specified: zero
- no upper bounds: set time to default, other unset ones are "infinity"/unreachable.
EDIT2; tasty-bench does analysis, and decides end criteria on the fly. That's another option and can be used to implement the above; but i think the above is still conseptually simpler.
i offer to write a patch.
- 主要言語
- Haskell
- スター
- 525
- フォーク
- 88
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
haskell/criterion のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 1/5 1〜3時間 初心者へのやさしさ 48/100
haskell/criterion の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
haskell/bytestring#730 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
seal-harness/seal-harness#399 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
fmidue/codeworld-tasks#124 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
reflex-frp/reflex#563 ·