core

package
v0.0.0-...-9196751 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Benchmark

type Benchmark struct {
	Concurrency int
	Requests    int
	CallRequest func(*resty.Request) R
}

func (Benchmark) Run

func (b Benchmark) Run() BenchmarkResult

type BenchmarkResult

type BenchmarkResult struct {
	TotalRequests     int
	TotalTime         time.Duration
	RequestsPerSecond float64

	MaxRequestTime time.Duration
	MinRequestTime time.Duration

	SuccessRequests int
	BadRequests     int
	FailRequests    int
}

func (BenchmarkResult) Print

func (res BenchmarkResult) Print()

type R

type R = Result[*resty.Response]

Jump to

Keyboard shortcuts

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