Show / Hide Table of Contents

    Class Config

    Perf run configuration properties.

    Inheritance
    System.Object
    Config
    Namespace: Lucene.Net.Benchmarks.ByTask.Utils
    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

    | Improve this Doc View Source

    Config(IDictionary<String, String>)

    Create config without algorithm - useful for a programmatic perf test.

    Declaration
    public Config(IDictionary<string, string> props)
    Parameters
    Type Name Description
    IDictionary<System.String, System.String> props

    Configuration properties.

    | Improve this Doc View Source

    Config(TextReader)

    Read both algorithm and config properties.

    Declaration
    public Config(TextReader algReader)
    Parameters
    Type Name Description
    TextReader algReader

    From where to read algorithm and config properties.

    Properties

    | Improve this Doc View Source

    AlgorithmText

    Gets the algorithmText.

    Declaration
    public virtual string AlgorithmText { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    RoundNumber

    Gets the round number.

    Declaration
    public virtual int RoundNumber { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    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.

    Declaration
    public virtual bool Get(string name, bool dflt)
    Parameters
    Type Name Description
    System.String name

    Name of property.

    System.Boolean dflt

    Default value.

    Returns
    Type Description
    System.Boolean

    A property.

    | Improve this Doc View Source

    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.

    Declaration
    public virtual double Get(string name, double dflt)
    Parameters
    Type Name Description
    System.String name

    Name of property.

    System.Double dflt

    Default value.

    Returns
    Type Description
    System.Double

    A double property.

    | Improve this Doc View Source

    Get(String, Int32)

    Return an property.

    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.

    Declaration
    public virtual int Get(string name, int dflt)
    Parameters
    Type Name Description
    System.String name

    Name of property.

    System.Int32 dflt

    Default value.

    Returns
    Type Description
    System.Int32

    An property.

    | Improve this Doc View Source

    Get(String, String)

    Return a string property.

    Declaration
    public virtual string Get(string name, string dflt)
    Parameters
    Type Name Description
    System.String name

    Name of property.

    System.String dflt

    Default value.

    Returns
    Type Description
    System.String

    A string property.

    | Improve this Doc View Source

    GetColsNamesForValsByRound()

    Gets names of params set by round, for reports title.

    Declaration
    public virtual string GetColsNamesForValsByRound()
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    GetColsValuesForValsByRound(Int32)

    Gets values of params set by round, for reports lines.

    Declaration
    public virtual string GetColsValuesForValsByRound(int roundNum)
    Parameters
    Type Name Description
    System.Int32 roundNum
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    NewRound()

    Increment the round number, for config values that are extracted by round number.

    Declaration
    public virtual int NewRound()
    Returns
    Type Description
    System.Int32

    The new round number.

    | Improve this Doc View Source

    Set(String, String)

    Set a property.

    Note: once a multiple values property is set, it can no longer be modified.

    Declaration
    public virtual void Set(string name, string value)
    Parameters
    Type Name Description
    System.String name

    Name of property.

    System.String value

    Either single or multiple property value (multiple values are separated by ":")

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)