Skip to content

RossRothenstine/stress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Minimalistic Stressing Framework

The stress package aims to provide a way to simulate work in a stressed environment.

Basic Usage

stresser := &stress.Stresser{
	New: func() stress.Worker {
		return &MyStressWorker{}
	},
	Limit: rate.NewLimiter(eventsPerSecond, eventsPerSecond),
}

go stresser.Start()

type MyStressWorker struct {}

func (worker *MyStressWorker) Work(ctx context.Context) {
	// Perform a single unit of work.
}

Examples

  • queue-producer - Pumps messages into an AMQP exchange.

TODO

  • Expand testing
  • Add more examples

About

Minimalistic Stress Testing for Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages