[FR] Allow complexity to fit a constant offset
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- cpp
- 領域
- performance
調査の方向性
Complexity fitters are implemented in src/complexity.cc (ComputeBigO) and exposed through the BigO enum in include/benchmark/benchmark.h; the BigO and RMS output columns are emitted by the reporters in src/reporter.cc and src/json_reporter.cc. Start by reading src/complexity.cc alongside test/complexity_test.cc to see how oN/oNLogN fits are computed and tested. Done means a new offset-aware fitter selectable from the benchmark registration, an extra output line for the constant term, and passing complexity tests.
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem? Please describe.
For some (cryptographic) algorithms that I'm benchmarking, the real complexity is something like O(a*N + C) where there is a fixed minimum running time that is non-trivial. Using the builtin oN complexity function always has a high RMS even though the actual times are quite linear (with an offset).
Describe the solution you'd like
Provide a different complexity fitter that will include a constant offset, with identical behavior to current complexity functions (no change to existing behaviors). When used with the new complexity function, a new Run output line would be included for the constant offset.
Describe alternatives you've considered
I can refactor all of my own functions to attempt to estimate the N=0 offset value.
But that will not be the same as a proper linear regression with offset, which has a closed form solution.
Additional context
An example of the output for one of the heavy-weight algorithms (ML-DSA-87) for varying plaintext sizes, which has a strong offset of ~700 us. Without fitting the offset, the RMS is very high.
BM_SigSign/MLDSA87/1024 709327 ns 654350 ns 4307
BM_SigSign/MLDSA87/4096 730189 ns 673641 ns 4299
BM_SigSign/MLDSA87/32768 800954 ns 738861 ns 3778
BM_SigSign/MLDSA87/262144 1197191 ns 1104392 ns 2440
BM_SigSign/MLDSA87/1048576 2587894 ns 2385932 ns 1185
BM_SigSign/MLDSA87_BigO 2.61 N 2.41 N
BM_SigSign/MLDSA87_RMS 50 % 50 %
- 主要言語
- C++
- スター
- 10.5k
- フォーク
- 1.8k
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 28
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
google/benchmark のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
[BUG] Memory manager counts allocations not part of benchmark再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
google/benchmark#2149 · コメント 7 件 ·
メンテナーはふだん 1 日以内に返信
-
[FR] New "benchstat" output format対応中かも @DenysZm が 4 日前に担当しました。 オープン
google/benchmark#2397 · コメント 4 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[FR] Add native Zig bindings via top-level `bindings/zig`再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 42/100
google/benchmark#2266 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
google/benchmark#2235 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
google/benchmark の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
component: tabs platform: macOS
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
zen-browser/desktop#16860 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
metasequoiaime/msime#12003 ·
メンテナーはふだん 1 日以内に返信