[llvm] [llvm-exegesis] Add option to specify the number of measurement repetitions (PR #74276)
Clement Courbet via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 6 09:33:15 PST 2023
================
@@ -24,14 +24,16 @@ class LatencyBenchmarkRunner : public BenchmarkRunner {
LatencyBenchmarkRunner(const LLVMState &State, Benchmark::ModeE Mode,
BenchmarkPhaseSelectorE BenchmarkPhaseSelector,
Benchmark::ResultAggregationModeE ResultAggMode,
- ExecutionModeE ExecutionMode);
+ ExecutionModeE ExecutionMode,
+ unsigned BenchmarkRepeatCount);
~LatencyBenchmarkRunner() override;
private:
Expected<std::vector<BenchmarkMeasure>>
runMeasurements(const FunctionExecutor &Executor) const override;
Benchmark::ResultAggregationModeE ResultAggMode;
+ unsigned BenchmarkRepetitions;
----------------
legrosbuffle wrote:
Similarly to the previous comment on the flag, let's call this `NumMeasurements` to differenciate with the repetitions within the snippet.
https://github.com/llvm/llvm-project/pull/74276
More information about the llvm-commits
mailing list