hrplot

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(svgfile string, b Benchmark, opts ...Option) error

All plots line, density and percentiles plot on a single image.

func Density

func Density(svgfile string, b Benchmark, opts ...Option) error

Density draws a density plot out of benchmark measurements.

func Line

func Line(svgfile string, b Benchmark, opts ...Option) error

Line draws a line graph in timing order.

func Percentiles

func Percentiles(svgfile string, b Benchmark, opts ...Option) error

Percentiles draws a percentiles plot out of benchmark measurements.

Types

type Benchmark

type Benchmark interface {
	Name() string
	Unit() string
	Float64s() []float64
}

Benchmark declares interface for benchmarks it can plot.

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option is for declaring options to plotting.

func ClipPercentile

func ClipPercentile(percentile float64) Option

ClipPercentile specifies how to clip the values.

Jump to

Keyboard shortcuts

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