Documentation ¶
Overview ¶
The blast package implements a benchmark where a fixed number of requests are sent to the server in their own thread (e.g. blasting the server with requests) and the total amount of time to respond to all requests is measured. This benchmark is primarily intended for computing throughput in messages per second.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blast ¶
type Blast struct {
// contains filtered or unexported fields
}
Blast implements the benchmark interface and runs a throughput-oriented benchmark that fires off a workload with a fixed number of requests and measures the amount of time that the server responds to all requests.
type EventFactory ¶
type EventFactory func() *api.EventWrapper
func MakeEventFactory ¶
func MakeEventFactory(size int, topicID ulid.ULID) EventFactory
Click to show internal directories.
Click to hide internal directories.