axis

package
v0.9.20-beta-20 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBenchmarks

func NewBenchmarks(benchWeight map[BenchValue]uint, summaryHTML template.HTML, options *BenchOptions) score.Axis

func NewWarnings

func NewWarnings(levelWeight map[warning.Level]uint, summaryHTML template.HTML) score.Axis

func Setup

func Setup() error

Types

type BenchOptions

type BenchOptions struct {
	Name         string
	IncludeTests []data.TestTag
	ExcludeTests []data.TestTag
}

type BenchValue

type BenchValue string
const (
	Allocations BenchValue = "Allocations"
	AllocBytes  BenchValue = "Alloc Bytes"
	Nanoseconds BenchValue = "Nanoseconds"
)

type Benchmarks

type Benchmarks struct {
	BenchOptions
	// contains filtered or unexported fields
}

func (*Benchmarks) Documentation

func (b *Benchmarks) Documentation() template.HTML

func (*Benchmarks) Exhibits

func (b *Benchmarks) Exhibits() []score.Exhibit

func (*Benchmarks) Name

func (b *Benchmarks) Name() string

func (*Benchmarks) ScoreFor

func (b *Benchmarks) ScoreFor(handler data.HandlerTag) score.Value

func (*Benchmarks) Setup

func (b *Benchmarks) Setup(bench *data.Benchmarks, _ *data.Warnings) error

func (*Benchmarks) Summary

func (b *Benchmarks) Summary() template.HTML

type Warnings

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

func (*Warnings) Documentation

func (w *Warnings) Documentation() template.HTML

func (*Warnings) Exhibits

func (w *Warnings) Exhibits() []score.Exhibit

func (*Warnings) Name

func (w *Warnings) Name() string

func (*Warnings) ScoreFor

func (w *Warnings) ScoreFor(handler data.HandlerTag) score.Value

func (*Warnings) Setup

func (w *Warnings) Setup(_ *data.Benchmarks, warns *data.Warnings) error

func (*Warnings) Summary

func (w *Warnings) Summary() template.HTML

Jump to

Keyboard shortcuts

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