models

package
v0.9.1-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Benchmark

type Benchmark = ent.Benchmark

Benchmark represents a benchmark.

type BenchmarkConfig

type BenchmarkConfig struct {
	// Database
	DBName   string
	Username string
	Password string
	Host     string
	Port     string

	// Benchmark-Init options
	FillFactor  int
	ScaleFactor int

	// Benchmark-Run options
	Mode       BenchmarkMode // Mode is the benchmarking mode
	NumThreads int           // NumThreads is the number of threads to use
	NumClients int           // NumClients is the number of clients to use
	Comment    string        // Comment is a comment to add to the benchmark
}

BenchmarkConfig holds the configuration for benchmarking

func (*BenchmarkConfig) Sanitize

func (c *BenchmarkConfig) Sanitize()

type BenchmarkMode

type BenchmarkMode = string

BenchmarkMode is a type for benchmark mode

const (
	ModeSimple   BenchmarkMode = "simple"   // ModeSimple is a simple benchmark mode
	ModeThorough BenchmarkMode = "thorough" // ModeThorough is a thorough benchmark mode
)

type BenchmarkResult

type BenchmarkResult = ent.BenchmarkResult

BenchmarkResult represents the result of a benchmark run.

type SystemMetric

type SystemMetric = ent.SystemMetric

SystemMetric represents a system metric.

type SystemSample

type SystemSample struct {
	CPULoad    float64
	MemoryLoad float64
}

Jump to

Keyboard shortcuts

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