Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
BatchSize int // accounts per iteration (default 10)
DeleteThreshold int // delete oldest 10% of txns when count exceeds this (0 = never delete)
ReportInterval time.Duration // how often to call reportFn (default 10s)
}
Config controls the soak workload parameters.
type Report ¶
type Report struct {
Iteration int
AccountCount int64
TxCount int64
Stats memcheck.Stats
OpsPerSec float64
Elapsed time.Duration
}
Report holds per-iteration statistics.
type Workload ¶
type Workload struct {
// contains filtered or unexported fields
}
Workload drives a sustained CRUD workload against a pglike database.
func (*Workload) Run ¶
Run loops RunIteration until ctx is cancelled or the memory monitor trips. It calls reportFn at ReportInterval with the latest report.
func (*Workload) RunIteration ¶
RunIteration executes one CRUD round and returns a report.
Click to show internal directories.
Click to hide internal directories.