Skip to content

PgBenchmarkTransactionMode

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Selects the PostgreSQL transaction boundary applied while measuring a benchmark.

public enum PgBenchmarkTransactionMode

Runs each measured batch in its own internal subtransaction and rolls it back, so a benchmark that changes data starts every batch from the same state. The rollback is part of the measured time.

RollbackPerBatch = 3

Runs every measured iteration in its own internal subtransaction and rolls it back, so a benchmark that changes data starts every iteration from the same state. The rollback is part of the measured time.

RollbackPerIteration = 4

Runs every measured iteration in the caller’s transaction.

Shared = 0

Runs each measured batch in its own internal subtransaction.

SubtransactionPerBatch = 1

Runs every measured iteration in its own internal subtransaction.

SubtransactionPerIteration = 2