harness

package
v0.0.0-...-1f7a6e7 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestResult

type TestResult struct {
	TestType     config.TestType `json:"test_type"`
	TrialResults []TrialResult   `json:"trial_results"`
}

TestResult is the result of a set of trials.

func Run

func Run(cfg *config.Config) ([]TestResult, error)

Run runs a benchmark based on the given config.

type TrialResult

type TrialResult struct {
	Bytes    uint64        `json:"bytes"`
	Duration time.Duration `json:"duration_nanos"`
	Error    string        `json:"error"`
}

TrialResult is the result of a single test trial.

Jump to

Keyboard shortcuts

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