Class Config
Perf run configuration properties.
Inheritance
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class Config : object
Remarks
Numeric property containing ":", e.g. "10??5" is interpreted as array of numeric values. It is extracted once, on first use, and maintain a round number to return the appropriate value.
The config property "work.dir" tells where is the root of docs data dirs and indexes dirs. It is set to either of:
- value supplied for it in the alg file;
- otherwise, value of environment variable "benchmark.work.dir";
- otherwise, "work".
Constructors
Name | Description |
---|---|
Config(IDictionary<String, String>) | Create config without algorithm - useful for a programmatic perf test. |
Config(TextReader) | Read both algorithm and config properties. |
Properties
Name | Description |
---|---|
AlgorithmText | Gets the algorithmText. |
RoundNumber | Gets the round number. |
Methods
Name | Description |
---|---|
Get(String, Boolean) | Return a boolean property. If the property contain ":", e.g. "true.true.false", it is interpreted as array of booleans. It is extracted once, on first call to Get() it, and a by-round-value is returned. |
Get(String, Double) | Return a double property. If the property contain ":", e.g. "10??5", it is interpreted as array of doubles. It is extracted once, on first call to Get() it, and a by-round-value is returned. |
Get(String, Int32) | Return an If the property contain ":", e.g. "10??5", it is interpreted as array of ints. It is extracted once, on first call to Get() it, and a by-round-value is returned. |
Get(String, String) | Return a string property. |
GetColsNamesForValsByRound() | Gets names of params set by round, for reports title. |
GetColsValuesForValsByRound(Int32) | Gets values of params set by round, for reports lines. |
NewRound() | Increment the round number, for config values that are extracted by round number. |
Set(String, String) | Set a property. Note: once a multiple values property is set, it can no longer be modified. |