models

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BenchmarkConfig

type BenchmarkConfig struct {
	// Database
	DBName   string
	Username 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
}

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 is a simple benchmark mode
	ModeSimple BenchmarkMode = "simple"
	// ModeThorough is a thorough benchmark mode
	ModeThorough BenchmarkMode = "thorough"
)

type Result

type Result = ent.Result

Result represents the result of a benchmark run.

type ResultGroupID

type ResultGroupID struct {
	typeid.TypeID[resultGroupPrefix]
}

Jump to

Keyboard shortcuts

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