bench

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MicroBenchResult

type MicroBenchResult struct {
	Name        string             `json:"name"`
	N           int                `json:"n"`
	NsPerOp     int64              `json:"ns_per_op"`
	BPerOp      int64              `json:"b_per_op"`
	AllocsPerOp int64              `json:"allocs_per_op"`
	Extra       map[string]float64 `json:"extra,omitempty"`
}

func RunMicroBenchmarks

func RunMicroBenchmarks(specs []MicroBenchSpec) []MicroBenchResult

type MicroBenchSpec

type MicroBenchSpec struct {
	Name string
	Fn   func(b *testing.B)
}

func DiffPatchStabilitySpecs

func DiffPatchStabilitySpecs() []MicroBenchSpec

func ProtocolPatchCodecSpecs

func ProtocolPatchCodecSpecs() []MicroBenchSpec

Jump to

Keyboard shortcuts

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