Skip to content

Commit

Permalink
Merge d307f28 into 05b8fe6
Browse files Browse the repository at this point in the history
  • Loading branch information
smarr committed Jul 17, 2018
2 parents 05b8fe6 + d307f28 commit 92ec3bb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docs/config.md
Expand Up @@ -353,7 +353,9 @@ It supports various format variables, including:
- cores (the number of cores to be used by the benchmark)
- input (the input variable's value)
- iterations (the number of iterations)
- suite (the name of the benchmark suite)
- variable (another variable's value)
- vm (the virtual machine's name)
- warmup (the number of iterations to be considered warmup)

This key is mandatory.
Expand Down Expand Up @@ -455,6 +457,9 @@ As well as:
- cores
- variable_values

Run configurations are generated from the cross product of all `input_sizes`,
`cores`, and `variable_values` for a benchmark.

## Benchmark

A benchmark can be define simply as a name. However, some times one might want
Expand Down Expand Up @@ -510,6 +515,9 @@ way to adjust the amount of computation performed.
`input_sizes` expects a list, either as in the list notation below, or
in form of a sequence literal: `[small, large]`.

Run configurations are generated from the cross product of all `input_sizes`,
`cores`, and `variable_values` for a benchmark.

Example:

```yaml
Expand All @@ -526,7 +534,10 @@ Example:
The number of cores to be used by the benchmark.
At least that's the original motivation for the variable.
In practice, it is more flexible and just another variable that can take
any list of strings.
any list of strings.

Run configurations are generated from the cross product of all `input_sizes`,
`cores`, and `variable_values` for a benchmark.

Example:

Expand All @@ -542,6 +553,9 @@ Example:
Another dimension by which the benchmark execution can be varied.
It takes a list of strings, or arbitrary values really.

Run configurations are generated from the cross product of all `input_sizes`,
`cores`, and `variable_values` for a benchmark.

Example:

```yaml
Expand Down
2 changes: 2 additions & 0 deletions rebench/model/run_id.py
Expand Up @@ -217,7 +217,9 @@ def _expand_vars(self, string):
'cores': self._cores,
'input': self._input_size,
'iterations': self.iterations,
'suite': self._benchmark.suite.name,
'variable': self._var_value,
'vm': self._benchmark.suite.vm.name,
'warmup': self._benchmark.run_details.warmup}
except ValueError as err:
self._report_format_issue_and_exit(string, err)
Expand Down

0 comments on commit 92ec3bb

Please sign in to comment.