utils

package
v0.0.0-...-0dfcff0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefClientsCount = 1
View Source
const DefGenSize = 200000
View Source
const Delay = 30 * time.Millisecond
View Source
const IOBufSize = 4 * 1024
View Source
const MaxStringLength = 1007

Variables

This section is empty.

Functions

func ClientsCount

func ClientsCount() int

func GenSize

func GenSize() int

func RandomBool

func RandomBool(r *rand.Rand) bool

func RandomFloat64

func RandomFloat64(r *rand.Rand) float64

func RandomInt

func RandomInt(r *rand.Rand) int

func RandomInt64

func RandomInt64(r *rand.Rand) int64

func RandomString

func RandomString(r *rand.Rand) string

func ReportMetrics

func ReportMetrics(clientsCount int, copsD chan time.Duration, b *testing.B)

Types

This section is empty.

Jump to

Keyboard shortcuts

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