Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultQPS = 1 DefaultClientConnections = 1 DefaultTestDuration = "1m" QPSEnvVar = "DAPR_PERF_QPS" ClientConnectionsEnvVar = "DAPR_PERF_CONNECTIONS" TestDurationEnvVar = "DAPR_TEST_DURATION" PayloadSizeEnvVar = "DAPR_PAYLOAD_SIZE_KB" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestParameters ¶
type TestParameters struct { QPS int `json:"qps"` ClientConnections int `json:"clientConnections"` TargetEndpoint string `json:"targetEndpoint"` TestDuration string `json:"testDuration"` PayloadSizeKB int `json:"payloadSizeKB"` }
func ParamsFromDefaults ¶
func ParamsFromDefaults() TestParameters
type TestResult ¶
type TestResult struct { RunType string `json:"RunType"` Labels string `json:"Labels"` StartTime time.Time `json:"StartTime"` RequestedQPS string `json:"RequestedQPS"` RequestedDuration string `json:"RequestedDuration"` ActualQPS float64 `json:"ActualQPS"` ActualDuration int64 `json:"ActualDuration"` NumThreads int `json:"NumThreads"` Version string `json:"Version"` DurationHistogram struct { Count int `json:"Count"` Min float64 `json:"Min"` Max float64 `json:"Max"` Sum float64 `json:"Sum"` Avg float64 `json:"Avg"` StdDev float64 `json:"StdDev"` Data []struct { Start float64 `json:"Start"` End float64 `json:"End"` Percent float64 `json:"Percent"` Count int `json:"Count"` } `json:"Data"` Percentiles []struct { Percentile float64 `json:"Percentile"` Value float64 `json:"Value"` } `json:"Percentiles"` } `json:"DurationHistogram"` Exactly int `json:"Exactly"` RetCodes struct { Num200 int `json:"200"` } `json:"RetCodes"` Sizes struct { Count int `json:"Count"` Min int `json:"Min"` Max int `json:"Max"` Sum int `json:"Sum"` Avg int `json:"Avg"` StdDev int `json:"StdDev"` Data []struct { Start int `json:"Start"` End int `json:"End"` Percent int `json:"Percent"` Count int `json:"Count"` } `json:"Data"` Percentiles interface{} `json:"Percentiles"` } `json:"Sizes"` HeaderSizes struct { Count int `json:"Count"` Min int `json:"Min"` Max int `json:"Max"` Sum int `json:"Sum"` Avg int `json:"Avg"` StdDev int `json:"StdDev"` Data []struct { Start int `json:"Start"` End int `json:"End"` Percent int `json:"Percent"` Count int `json:"Count"` } `json:"Data"` Percentiles interface{} `json:"Percentiles"` } `json:"HeaderSizes"` URL string `json:"URL"` SocketCount int `json:"SocketCount"` AbortOn int `json:"AbortOn"` }
Click to show internal directories.
Click to hide internal directories.