Documentation
¶
Overview ¶
Package estimation provides data volume estimation and confirmation prompts for Broadside load tests. It calculates expected job counts, database sizes, and query volumes based on test configuration, and prompts users for confirmation when tests will generate large amounts of data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayEstimationAndConfirm ¶
func DisplayEstimationAndConfirm(est Estimation) (bool, error)
func FormatBytes ¶
func ShouldPrompt ¶
func ShouldPrompt(est Estimation) bool
Types ¶
type Estimation ¶
type Estimation struct {
HistoricalJobs int
NewJobs int
TotalJobs int
EstimatedDatabaseSizeBytes int64
TotalQueryCount int
TestDuration time.Duration
}
func Estimate ¶
func Estimate(config configuration.TestConfig) Estimation
Click to show internal directories.
Click to hide internal directories.