reporter

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package reporter contains functionality for creating reports and printing results of executed dnsbench.Benchmark.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintReport

func PrintReport(b *dnsbench.Benchmark, stats []*dnsbench.ResultStats, benchStart time.Time, benchDuration time.Duration) error

PrintReport prints formatted benchmark result to stdout, exports graphs and generates CSV output if configured. If there is a fatal error while printing report, an error is returned.

Types

type BenchmarkResultStats added in v3.1.0

type BenchmarkResultStats struct {
	Codes                map[int]int64
	Qtypes               map[string]int64
	Hist                 *hdrhistogram.Histogram
	Timings              []dnsbench.Datapoint
	Counters             dnsbench.Counters
	Errors               []dnsbench.ErrorDatapoint
	GroupedErrors        map[string]int
	AuthenticatedDomains map[string]struct{}
	DoHStatusCodes       map[int]int64
}

BenchmarkResultStats represents merged results of the dnsbench.Benchmark execution.

func Merge added in v3.1.0

Merge takes results of the executed dnsbench.Benchmark and merges them.

Jump to

Keyboard shortcuts

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