Documentation
¶
Overview ¶
Package perf contains performance client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client - client for performance testing.
type Config ¶
type Config struct {
// Endpoint server address
Endpoint string `json:"endpoint"`
// RPS - target load [issued requests per second]
RPS rate.Limit `json:"rps"`
// LoadDuration - duration of the performance test session
LoadDuration duration.Duration `json:"load_duration"`
// AllocationSize - the size of allocations made on the server side during each request
AllocationSize bytes.Bytes `json:"allocation_size"`
// PauseDuration - duration of the pause in the request handler
// on the server-side (to help allocations reside in server memory for a long time).
PauseDuration duration.Duration `json:"pause_duration"`
// RequestTimeout - server request timeout
RequestTimeout duration.Duration `json:"request_timeout"`
}
Config - performance client configuration.
Click to show internal directories.
Click to hide internal directories.