benchmark

package
v0.0.0-...-f952791 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLevelRange

func ParseLevelRange(levelRange string) (min int, max int, err error)

ParseLevelRange parses a string like "1-9" into min and max integers.

func Run

func Run(cfg Config) error

Run executes the benchmark operation based on the provided configuration.

Types

type BenchmarkStats

type BenchmarkStats struct {
	TotalFiles            int64
	TotalOriginalSize     int64
	TotalDecompressedSize int64
	PerLevel              map[int]*LevelStats
}

type Config

type Config struct {
	ArchiveDir     string
	BenchmarkFiles int
	MinLevel       int
	MaxLevel       int
	Logger         *slog.Logger

	Since   *time.Time
	Until   *time.Time
	Reverse bool
}

Config holds the configuration for the benchmark operation.

type LevelStats

type LevelStats struct {
	TotalCompressedSize int64
	TotalTime           time.Duration
	Count               int64
}

Jump to

Keyboard shortcuts

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