Show / Hide Table of Contents

    Class ActionBenchmarkInvoker

    A IBenchmarkInvoker implementation that works on anonymous methods and delegates.

    Inheritance
    System.Object
    ActionBenchmarkInvoker
    Implements
    IBenchmarkInvoker
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: NBench.Sdk
    Assembly: NBench.dll
    Syntax
    public class ActionBenchmarkInvoker : IBenchmarkInvoker

    Constructors

    ActionBenchmarkInvoker(String, Action<BenchmarkContext>)

    Declaration
    public ActionBenchmarkInvoker(string benchmarkName, Action<BenchmarkContext> runAction)
    Parameters
    Type Name Description
    System.String benchmarkName
    System.Action<BenchmarkContext> runAction

    ActionBenchmarkInvoker(String, Action<BenchmarkContext>, Action<BenchmarkContext>, Action<BenchmarkContext>)

    Declaration
    public ActionBenchmarkInvoker(string benchmarkName, Action<BenchmarkContext> setupAction, Action<BenchmarkContext> runAction, Action<BenchmarkContext> cleanupAction)
    Parameters
    Type Name Description
    System.String benchmarkName
    System.Action<BenchmarkContext> setupAction
    System.Action<BenchmarkContext> runAction
    System.Action<BenchmarkContext> cleanupAction

    Fields

    NoOp

    Default no-op action.

    Declaration
    public static readonly Action<BenchmarkContext> NoOp
    Field Value
    Type Description
    System.Action<BenchmarkContext>

    Properties

    BenchmarkName

    Declaration
    public string BenchmarkName { get; }
    Property Value
    Type Description
    System.String

    Methods

    InvokePerfCleanup(BenchmarkContext)

    Declaration
    public void InvokePerfCleanup(BenchmarkContext context)
    Parameters
    Type Name Description
    BenchmarkContext context

    InvokePerfSetup(BenchmarkContext)

    Declaration
    public void InvokePerfSetup(BenchmarkContext context)
    Parameters
    Type Name Description
    BenchmarkContext context

    InvokePerfSetup(Int64, BenchmarkContext)

    Declaration
    public void InvokePerfSetup(long runCount, BenchmarkContext context)
    Parameters
    Type Name Description
    System.Int64 runCount
    BenchmarkContext context

    InvokeRun(BenchmarkContext)

    Declaration
    public void InvokeRun(BenchmarkContext context)
    Parameters
    Type Name Description
    BenchmarkContext context

    Implements

    IBenchmarkInvoker
    Back to top Copyright © 2015-2020 Petabridge™, LLC