benchdaily

package
v1.1.0-beta.0...-57a73ea Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(tests ...func(b *testing.B))

Run runs some benchmark tests, write the result to a JSON file.

Types

type BenchOutput

type BenchOutput struct {
	Date   string
	Commit string
	Result []BenchResult
}

BenchOutput is the json format for the final output file.

type BenchResult

type BenchResult struct {
	Name        string
	NsPerOp     int64
	AllocsPerOp int64
	BytesPerOp  int64
}

BenchResult is one benchmark result.

Jump to

Keyboard shortcuts

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