benchmark

package
v0.0.0-...-b9c2ea1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseSize

func ParseSize(s string) (int64, error)

ParseSize parses a human-readable size string into bytes. Supports suffixes: GiB, MiB, KiB, GB, MB, KB, G, M, K, B, or plain integer.

func Run

func Run(ctx context.Context, opts Options) error

Run executes the full benchmark suite described by opts.

Types

type Options

type Options struct {
	CloudURL   string // gs://bucket/[prefix]
	LocalDir   string
	Size       int64
	MaxWorkers int
	BlockSize  int64
	RandReads  int
	DryRun     bool
	OutPath    string
	Benchmarks []string    // if non-empty, only run these benchmark names
	Labels     [][2]string // extra columns appended to every CSV row: [colName, value]
}

Options configures a benchmark run.

Jump to

Keyboard shortcuts

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