diff options
| author | Shulhan <ms@kilabit.info> | 2021-12-10 15:04:11 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2021-12-10 15:52:37 +0700 |
| commit | 81f5617bdbb6489aedb50120b4b653fb49d63c1a (patch) | |
| tree | 77f0a6af0dceedc5a5412f21632d75b5a6f9ff0c /attack_result.go | |
| parent | ab237f92fb83b6bf8d61675a207804ec0d3e6711 (diff) | |
| download | gorankusu-81f5617bdbb6489aedb50120b4b653fb49d63c1a.tar.xz | |
all: realign all structs
Changes,
* AttackResult storage size decreased -24 bytes
* Environment storage size decreased -32 bytes
* HttpTarget storage size decreased -24 bytes
* RunRequest storage size decreased -32 bytes
* RunResponse storage size decreased -8 bytes
* Target storage size decreased -16 bytes
* WebSocketTarget storage size decreased -8 bytes
Diffstat (limited to 'attack_result.go')
| -rw-r--r-- | attack_result.go | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/attack_result.go b/attack_result.go index f2cc132..544e886 100644 --- a/attack_result.go +++ b/attack_result.go @@ -30,19 +30,20 @@ const ( // AttackResult represent the output from load testing. // type AttackResult struct { - mtx sync.Mutex + fout *os.File + encoder vegeta.Encoder + metrics *vegeta.Metrics + hist *vegeta.Histogram TargetID string // ID of Target. HttpTargetID string // ID of HTTP target which own the result. Name string // Name of output file without path. - TextReport []byte // TextReport the result reported as text. - HistReport []byte // HistReport the result reported as histogram text. + fullpath string + + TextReport []byte // TextReport the result reported as text. + HistReport []byte // HistReport the result reported as histogram text. - fullpath string - fout *os.File - encoder vegeta.Encoder - metrics *vegeta.Metrics - hist *vegeta.Histogram + mtx sync.Mutex } // |
