modulepackage
0.0.0-20161028231757-467eb88f4ff8
Repository: https://github.com/christopherrabotin/sg.git
Documentation: pkg.go.dev
# README
Stress Gauge - sg
sg allows one to gauge response times of an HTTP service under stress.
Features
Note: what is in italics is not yet implemented.
- XML test profile;
- XML result file, with XSL for humans to read;
- Set total number of requests and total number of concurrent requests;
- Response time break down by percentile;
- Set header, body and cookie(s) from an initial request or within XML;
- Regex-like URL generation.
Quick start
Grab the basic example and start changing with the test profile.
# Functions
NewPercentages returns a stuct which helps in serializing request results.
# Structs
Duration allows automatic unmarshaling of a duration from XML.
Percentages stores some Percentagess.
Profile stores the whole test profile.
Request stores the request as XML.
Response extends a goreq.Response with a duration.
Result store the result of a group of requests (as define by its concurrency and repetition).
Status stores the number of times a given status was found.
StatusSummary stores the summary of statuses got for a group of requests.
StressTest stores the one stress test.
Tokenized stores the data handling from a given response.
URL handles URL generation based on the requested pattern.
URLToken handles the generate of tokens for the URL.