model

package
v0.0.0-...-9dc6399 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 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 BenchmarkResult

type BenchmarkResult struct {
	Metadata Metadata `json:"metadata"`
	Stats    []Stats  `json:"stats"`
}

func NewBenchmarkResult

func NewBenchmarkResult() *BenchmarkResult

type Metadata

type Metadata struct {
	OS    string `json:"os"`
	Cores int    `json:"cores"`

	Provider    string `json:"provider"`
	Iterations  int    `json:"iterations"`
	Parallelism int    `json:"parallelism"`
	ObjectSize  string `json:"object-size"`
}

type Stats

type Stats struct {
	Benchmark     string        `json:"benchmark"`
	Min           time.Duration `json:"min"`
	Avg           time.Duration `json:"avg"`
	P50           time.Duration `json:"p50"`
	P95           time.Duration `json:"p95"`
	P99           time.Duration `json:"p99"`
	Max           time.Duration `json:"max"`
	AvgThroughput string        `json:"avg-throughput"`
}

Jump to

Keyboard shortcuts

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