Class JournalPerfSpec
This spec measures execution times of the basic operations that an PersistentActor provides, using the provided Journal (plugin).
It is NOT meant to be a comprehensive benchmark, but rather aims to help plugin developers to easily determine if their plugin's performance is roughly as expected. It also validates the plugin still works under "more messages" scenarios.
In case your journal plugin needs some kind of teardown, override the AfterAll
method (don't forget to call base
in your overridden methods).
Inherited Members
Namespace: Akka.Persistence.TestKit.Performance
Assembly: Akka.Persistence.TCK.dll
Syntax
public abstract class JournalPerfSpec : TestKit, IActorRefFactory, IDisposable
Constructors
| Improve this Doc View SourceJournalPerfSpec(Config, String, ITestOutputHelper)
Declaration
protected JournalPerfSpec(Config config, string actorSystem, ITestOutputHelper output)
Parameters
Type | Name | Description |
---|---|---|
Config | config | |
String | actorSystem | |
Xunit.Abstractions.ITestOutputHelper | output |
Fields
| Improve this Doc View SourceEventsCount
Number of messages sent to the PersistentActor under test for each test iteration
Declaration
protected int EventsCount
Field Value
Type | Description |
---|---|
Int32 |
ExpectDuration
Override in order to customize timeouts used for ExpectMsg, in order to tune the awaits to your journal's perf
Declaration
protected TimeSpan ExpectDuration
Field Value
Type | Description |
---|---|
TimeSpan |
MeasurementIterations
Number of measurement iterations each test will be run.
Declaration
protected int MeasurementIterations
Field Value
Type | Description |
---|---|
Int32 |
OutlierRejectionSigma
Sigma value for the z-score outlier rejection algorithm
Declaration
protected double OutlierRejectionSigma
Field Value
Type | Description |
---|---|
Double |
Methods
| Improve this Doc View SourcePersistenceActor_performance_must_measure_Persist()
Declaration
[Fact]
public void PersistenceActor_performance_must_measure_Persist()
PersistenceActor_performance_must_measure_PersistAll()
Declaration
[Fact]
public void PersistenceActor_performance_must_measure_PersistAll()
PersistenceActor_performance_must_measure_PersistAllAsync()
Declaration
[Fact]
public void PersistenceActor_performance_must_measure_PersistAllAsync()
PersistenceActor_performance_must_measure_PersistAsync()
Declaration
[Fact]
public void PersistenceActor_performance_must_measure_PersistAsync()
PersistenceActor_performance_must_measure_PersistGroup10()
Declaration
[Fact]
public void PersistenceActor_performance_must_measure_PersistGroup10()
PersistenceActor_performance_must_measure_PersistGroup100()
Declaration
[Fact]
public void PersistenceActor_performance_must_measure_PersistGroup100()
PersistenceActor_performance_must_measure_PersistGroup200()
Declaration
[Fact]
public void PersistenceActor_performance_must_measure_PersistGroup200()
PersistenceActor_performance_must_measure_PersistGroup25()
Declaration
[Fact]
public void PersistenceActor_performance_must_measure_PersistGroup25()
PersistenceActor_performance_must_measure_PersistGroup50()
Declaration
[Fact]
public void PersistenceActor_performance_must_measure_PersistGroup50()
PersistenceActor_performance_must_measure_Recovering()
Declaration
[Fact]
public void PersistenceActor_performance_must_measure_Recovering()
PersistenceActor_performance_must_measure_RecoveringFour()
Declaration
[Fact]
public void PersistenceActor_performance_must_measure_RecoveringFour()
PersistenceActor_performance_must_measure_RecoveringTwo()
Declaration
[Fact]
public void PersistenceActor_performance_must_measure_RecoveringTwo()