C# Class Akka.Tests.Performance.Dispatch.ColdDispatcherThroughputSpecBase

Base class used to test all MessageDispatcher implementations
ファイルを表示 Open project: rogeralsing/akka.net

Protected Properties

Property Type Description
EventBlock System.Threading.ManualResetEventSlim
ScheduledWork System.Action

Protected Methods

Method Description
Configurator ( ) : MessageDispatcherConfigurator
Warmup ( MessageDispatcher dispatcher ) : void

Warms up dispatcher prior to the benchmark running, so we can exclude initialization overhead from the results of the benchmark.

Does nothing by default (includes overhead)

Private Methods

Method Description
Schedule_throughput ( BenchmarkContext context ) : void
Setup ( BenchmarkContext context ) : void
Teardown ( ) : void

Method Details

Configurator() protected abstract method

protected abstract Configurator ( ) : MessageDispatcherConfigurator
return Akka.Dispatch.MessageDispatcherConfigurator

Warmup() protected method

Warms up dispatcher prior to the benchmark running, so we can exclude initialization overhead from the results of the benchmark.
Does nothing by default (includes overhead)
protected Warmup ( MessageDispatcher dispatcher ) : void
dispatcher Akka.Dispatch.MessageDispatcher The implementaiton we'll be testing.
return void

Property Details

EventBlock protected_oe property

Used to block the benchmark method from exiting before all scheduled work is completed
protected ManualResetEventSlim,System.Threading EventBlock
return System.Threading.ManualResetEventSlim

ScheduledWork protected_oe property

protected Action,System ScheduledWork
return System.Action