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 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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