benchmark

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSome = errors.New("ErrSome")

Functions

func Adapter

func Adapter(b *testing.B, adapter logger.Adapter)

Adapter runs benchmarks on any implementation of logger.Adapter.

Types

type DiscardWriter

type DiscardWriter struct{}

DiscardWriter is io.Writer discarding all written bytes.

func (DiscardWriter) Write

func (d DiscardWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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