| 1 |
/// Benchmarking options set directly by the user in `#[divan::bench]` and |
| 2 |
/// `#[divan::bench_group]`. |
| 3 |
/// |
| 4 |
/// Changes to fields must be reflected in the "Options" sections of the docs |
| 5 |
/// for `#[divan::bench]` and `#[divan::bench_group]`. |
| 6 |
#[derive(Default)] |
| 7 |
pub struct BenchOptions { |
| 8 |
/// Whether the benchmark should be ignored. |
| 9 |
/// |
| 10 |
/// This may be set within the attribute or with a separate |
| 11 |
/// [`#[ignore]`](https://doc.rust-lang.org/reference/attributes/testing.html#the-ignore-attribute). |
| 12 |
pub ignore: Option<bool>, |
| 13 |
|
| 14 |
/// Counters to be used with this benchmark. |
| 15 |
/// |
| 16 |
/// Note: Counters are not yet supported by codspeed-divan-compat. |
| 17 |
/// This field is provided for API compatibility but does not affect benchmarking. |
| 18 |
pub counters: Option<Vec<String>>, |
| 19 |
} |