Show / Hide Table of Contents

    Interface IBenchmarkInvoker

    Used to invoke the benchmark methods on the user-defined objects that have methods marked with PerfBenchmarkAttribute.

    Namespace: NBench.Sdk
    Assembly: NBench.dll
    Syntax
    public interface IBenchmarkInvoker

    Properties

    BenchmarkName

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

    Methods

    InvokePerfCleanup(BenchmarkContext)

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

    InvokePerfSetup(BenchmarkContext)

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

    InvokePerfSetup(Int64, BenchmarkContext)

    Used for Throughput scenarios

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

    The number of runs for which we'll execute this benchmark

    BenchmarkContext context

    The context used for the run

    InvokeRun(BenchmarkContext)

    Declaration
    void InvokeRun(BenchmarkContext context)
    Parameters
    Type Name Description
    BenchmarkContext context
    Back to top Copyright © 2015-2020 Petabridge™, LLC