httpbench

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConInfo

type ConInfo struct {
	DNS      time.Duration
	Connect  time.Duration
	SSL      time.Duration
	TTFB     time.Duration
	Total    time.Duration
	Transfer time.Duration
	//Transfer    time.Duration No Transfer time because we don't consume body
	Addr string
}

ConInfo holds timing data for http test

type Result

type Result struct {
	Server string
	CI     *ConInfo
}

Result of individual server

type Results

type Results []Result

Results list of Result, to make it sortable

func TestOverHTTP

func TestOverHTTP(u *url.URL, resolvers []string) Results

TestOverHTTP tests a url over HTTP after resolving against various resolvers

func (Results) Len

func (a Results) Len() int

func (Results) Less

func (a Results) Less(i, j int) bool

func (Results) Swap

func (a Results) Swap(i, j int)

Jump to

Keyboard shortcuts

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