tsvc

package module
v0.0.0-...-f9d0977 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plan

type Plan struct {
	T       *testing.T
	W       io.Writer
	Ramping time.Duration

	RequestPerSecond int
	Duration         time.Duration
	Setup            func() (any, error)
	Test             func(request any, err error) (any, error)
	Cleanup          func(response any, err error) (any, error)
	Assert           func(*Report) (any, error)
	Formalize        func() (any, error)
	// contains filtered or unexported fields
}

func (*Plan) Run

func (plan *Plan) Run() *Report

type Report

type Report struct {
	T                *testing.T
	RequestPerSecond int
	TestDuration     time.Duration
	RequestCount     int
	P50              time.Duration
	P90              time.Duration
	P95              time.Duration
	P99              time.Duration
	Avg              time.Duration
	Std              time.Duration
	SvcUnderLoad     time.Duration
	Throughput       float64 // req/s
	ErrorCount       int
	ErrorRate        float64
	Ramping          ramping
	Results          []result
	Asserts          ane
	Formalize        ane
}

func (Report) String

func (r Report) String() string

Directories

Path Synopsis
demo

Jump to

Keyboard shortcuts

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