estimation

package
v0.20.34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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 FormatBytes(bytes int64) string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL