You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,6 +123,19 @@ BINGGAN_FILTER="my_bench OR other_bench" cargo bench
123
123
124
124
Available fields are `runner_name` (or `r`), `group_name` (or `g`), and `bench_name` (or `b`). If no field is specified, it will match against the full generated `BenchId`.
125
125
126
+
### Iteration overrides
127
+
128
+
If you want reproducible iteration counts without changing code, you can override them with environment variables:
129
+
130
+
```bash
131
+
NUM_ITER_BENCH=100 cargo bench
132
+
NUM_ITER_GROUP=16 cargo bench
133
+
NUM_ITER_GROUP=16 NUM_ITER_BENCH=100 cargo bench
134
+
```
135
+
136
+
-`NUM_ITER_BENCH` sets the inner benchmark iteration count.
137
+
-`NUM_ITER_GROUP` sets how often the whole benchmark group is repeated.
138
+
126
139
### Perf Integration
127
140
Perf may run into limitations where all counters are reported as zero. https://github.com/jimblandy/perf-event/issues/2
0 commit comments