Show / Hide Table of Contents

    Class CounterThroughputAssertionAttribute

    Performs an assertion against counters collected over the course of a benchmark.

    This asserts the NUMBER OF OPERATIONS / SECOND values averaged over all runs of a benchmark.

    Inheritance
    System.Object
    System.Attribute
    MeasurementAttribute
    CounterMeasurementAttribute
    CounterThroughputAssertionAttribute
    Inherited Members
    CounterMeasurementAttribute.CounterName
    System.Attribute.Equals(System.Object)
    System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Module)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetHashCode()
    System.Attribute.IsDefaultAttribute()
    System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
    System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
    System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.Module, System.Type)
    System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.Match(System.Object)
    System.Attribute.TypeId
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: NBench
    Assembly: NBench.dll
    Syntax
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
    public class CounterThroughputAssertionAttribute : CounterMeasurementAttribute

    Constructors

    CounterThroughputAssertionAttribute(String, MustBe, Double)

    Declaration
    public CounterThroughputAssertionAttribute(string counterName, MustBe condition, double averageOperationsPerSecond)
    Parameters
    Type Name Description
    System.String counterName
    MustBe condition
    System.Double averageOperationsPerSecond

    Properties

    AverageOperationsPerSecond

    The value that will be compared against the collected metric for CounterName.

    Declaration
    public double AverageOperationsPerSecond { get; }
    Property Value
    Type Description
    System.Double

    Condition

    The test we're going to perform against the collected value of CounterName and AverageOperationsPerSecond.

    Declaration
    public MustBe Condition { get; }
    Property Value
    Type Description
    MustBe

    MaxAverageOperationsPerSecond

    Used only on Between comparisons. This is the upper bound of that comparison and AverageOperationsPerSecond is the lower bound.

    Declaration
    public double? MaxAverageOperationsPerSecond { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Double>
    Back to top Copyright © 2015-2020 Petabridge™, LLC