teststress

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package teststress provides a helper for stress testing.

It is in a separate package to avoid import cycles.

Index

Constants

This section is empty.

Variables

View Source
var NumGoroutines = runtime.GOMAXPROCS(-1) * 10

NumGoroutines is the total count of goroutines created in Stress function.

Functions

func Stress

func Stress(tb testtb.TB, f func(ready chan<- struct{}, start <-chan struct{}))

Stress runs function f in multiple goroutines.

Function f should do a needed setup, send a message to ready channel when it is ready to start, wait for start channel to be closed, and then do the actual work.

Types

This section is empty.

Jump to

Keyboard shortcuts

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