bench

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintResults

func PrintResults(summaries []Summary)

Types

type Result

type Result struct {
	Domain     string
	Mode       string // "proxy" or "direct"
	DNS        time.Duration
	TCP        time.Duration
	TLS        time.Duration
	TTFB       time.Duration
	Total      time.Duration
	StatusCode int
	Error      string
}

type Summary

type Summary struct {
	Domain  string
	Mode    string
	Runs    int
	Success int
	LastErr string
	DNS     [3]time.Duration // min, avg, max
	TCP     [3]time.Duration
	TLS     [3]time.Duration
	TTFB    [3]time.Duration
	Total   [3]time.Duration
}

func Run

func Run(cfg *config.Config, domains []string, runs int) []Summary

Jump to

Keyboard shortcuts

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