bencher

package
v0.0.0-...-4a9ff44 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BenchResults

type BenchResults struct {
	Algorithm         string `csv:"algorithm"`
	Average           int64  `csv:"average"`
	Fastest           int64  `csv:"fastest"`
	Iterations        int    `csv:"iterations"`
	DatasetSize       int    `csv:"dataset_size"`
	Median            int64  `csv:"median"`
	Slowest           int64  `csv:"slowest"`
	StandardDeviation int64  `csv:"standard_deviation"`
}

type Bencher

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

func New

func New(algorithm string, iterations int) *Bencher

func (Bencher) Bench

func (b Bencher) Bench(fn func(), datasetSize int) (BenchResults, error)

Jump to

Keyboard shortcuts

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