benchmark

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BenchmarkStringConcat

func BenchmarkStringConcat(b *testing.B)

Types

type Benchmark

type Benchmark struct {
	// contains filtered or unexported fields
}

func NewBenchmark

func NewBenchmark(fn_names ...string) *Benchmark

func (*Benchmark) AddBenchmark

func (bm *Benchmark) AddBenchmark(arg string, fns ...BenchmarkFn) error

func (*Benchmark) ChangeBaseValue

func (bm *Benchmark) ChangeBaseValue(base uint) error

func (*Benchmark) ChangeTestCount

func (bm *Benchmark) ChangeTestCount(count uint) error

func (Benchmark) Run

func (bm Benchmark) Run(b *testing.B) int

type BenchmarkFn

type BenchmarkFn func(exp uint)

type Instance

type Instance struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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