Skip to content

Commit a5eb72a

Browse files
author
Abduqodiri Qurbonzoda
committed
fixup! Improve configuration-options.md (#138)
1 parent f9830cc commit a5eb72a

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

docs/configuration-options.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,25 @@ benchmark {
2222

2323
Configuration profiles dictate the execution pattern of benchmarks:
2424

25-
- Utilize `include` and `exclude` options to select specific benchmarks for a profile.
26-
- By default, every benchmark is included.
25+
- Utilize `include` and `exclude` options to select specific benchmarks for a profile. By default, every benchmark is included.
2726
- Each configuration profile translates to a task in the `kotlinx-benchmark` Gradle plugin. For instance, the task `smokeBenchmark` is tailored to run benchmarks based on the `"smoke"` configuration profile. For an overview of tasks, refer to [tasks-overview.md](tasks-overview.md).
2827

2928
## Core Configuration Options
3029

3130
Note that values defined in the build script take precedence over those specified by annotations in the code.
3231

33-
| Option | Description | Possible Values | Corresponding Annotation |
34-
| ----------------------------------- |------------------------------------------------------------------------------------------------------------------------------|-------------------------------|-----------------------------------------------------|
35-
| `iterations` | Sets the number of iterations for measurements. | Integer | @Measurement(iterations: Int, ...) |
36-
| `warmups` | Sets the number of iterations for system warming, ensuring accurate measurements. | Integer | @Warmup(iterations: Int) |
37-
| `iterationTime` | Sets the duration for each iteration, both measurement and warm-up. | Integer | @Measurement(..., time: Int, ...) |
38-
| `iterationTimeUnit` | Defines the unit for `iterationTime`. | Time unit, see below | @Measurement(..., timeUnit: BenchmarkTimeUnit, ...) |
39-
| `outputTimeUnit` | Sets the unit for the results display. | Time unit, see below | @OutputTimeUnit(value: BenchmarkTimeUnit) |
40-
| `mode` | Selects "thrpt" (Throughput) for measuring the number of function calls per unit time or "avgt" (AverageTime) for measuring the time per function call. | `thrpt`(default), `Throughput`(default), `avgt`, `AverageTime` | @BenchmarkMode |
41-
| `include("…")` | Applies a regular expression to include benchmarks that match the substring in their fully qualified names. | Regex pattern | - |
42-
| `exclude("…")` | Applies a regular expression to exclude benchmarks that match the substring in their fully qualified names. | Regex pattern | - |
43-
| `param("name", "value1", "value2")` | Assigns values to a public mutable property with the specified name, annotated with `@Param`. | Any string values | @Param |
44-
| `reportFormat` | Defines the benchmark report's format options. | `json`(default), `csv`, `scsv`, `text` | - |
32+
| Option | Description | Possible Values | Corresponding Annotation |
33+
| ----------------------------------- |---------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------|-----------------------------------------------------|
34+
| `iterations` | Sets the number of iterations for measurements. | Positive Integer | @Measurement(iterations: Int, ...) |
35+
| `warmups` | Sets the number of iterations for system warming, ensuring accurate measurements. | Non-negative Integer | @Warmup(iterations: Int) |
36+
| `iterationTime` | Sets the duration for each iteration, both measurement and warm-up. | Positive Integer | @Measurement(..., time: Int, ...) |
37+
| `iterationTimeUnit` | Defines the unit for `iterationTime`. | Time unit, see below | @Measurement(..., timeUnit: BenchmarkTimeUnit, ...) |
38+
| `outputTimeUnit` | Sets the unit for the results display. | Time unit, see below | @OutputTimeUnit(value: BenchmarkTimeUnit) |
39+
| `mode` | Selects "thrpt" (Throughput) for measuring the number of function calls per unit time or "avgt" (AverageTime) for measuring the time per function call. | `thrpt`, `Throughput`, `avgt`, `AverageTime` | @BenchmarkMode(value: Mode) |
40+
| `include("…")` | Applies a regular expression to include benchmarks that match the substring in their fully qualified names. | Regex pattern | - |
41+
| `exclude("…")` | Applies a regular expression to exclude benchmarks that match the substring in their fully qualified names. | Regex pattern | - |
42+
| `param("name", "value1", "value2")` | Assigns values to a public mutable property with the specified name, annotated with `@Param`. | String values that represent valid values for the property | @Param |
43+
| `reportFormat` | Defines the benchmark report's format options. | `json`(default), `csv`, `scsv`, `text` | - |
4544

4645
The following values can be used for specifying time unit:
4746
- "NANOSECONDS", "ns", "nanos"

0 commit comments

Comments
 (0)