benchmark

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: MIT Imports: 1 Imported by: 0

README

benchmark

Simple Go utility for writing benchmark tests

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Test

func Test(
	t *testing.T,
	f func(b *testing.B),
	assertions ...Assertion,
)

Types

type Assertion

type Assertion func(t *testing.T, result testing.BenchmarkResult)

func AllocedBytesPerOp

func AllocedBytesPerOp(expected int64) Assertion

func AllocsPerOp

func AllocsPerOp(expected int64) Assertion

func ZeroAllocsPerOp

func ZeroAllocsPerOp() Assertion

Jump to

Keyboard shortcuts

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