Skip to content

Commit

Permalink
Adding errors to analyze and a readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zveinn committed Oct 11, 2024
1 parent 7561130 commit bc29f7b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ NOTE: Be careful not to re-use the ID's if you care about fetching results at a
# get test results
./hperf stat --hosts 1.1.1.{1...100} --id [my_test_id]
# save test results
./hperf stat --hosts 1.1.1.{1...100} --id [my_test_id] --output /tmp/file
./hperf stat --hosts 1.1.1.{1...100} --id [my_test_id] --output /tmp/test.out

# analyze test results
./hperf analyze --file /tmp/test.out

# listen in on a running test
./hperf listen --hosts 1.1.1.{1...100} --id [my_test_id]
Expand All @@ -97,6 +100,13 @@ NOTE: Be careful not to re-use the ID's if you care about fetching results at a
./hperf stop --hosts 1.1.1.{1...100} --id [my_test_id]
```

## Analysis
The analyze command will print statistics for the 10th and 90th percentiles and all datapoints in between.
The format used is:
- 10th percentile: total, low, avarage, high
- in between: total, low, avarage, high
- 90th percentile: total, low, avarage, high

## Available Statistics
- Payload Roundtrip (RMS high/low):
- Payload transfer time (Microseconds)
Expand Down
4 changes: 4 additions & 0 deletions cmd/hperf/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ func AnalyzeTest(ctx context.Context, c shared.Config) (err error) {
}
}

for i := range errors {
client.PrintTError(errors[i])
}

printBracker(dps10stats, "? < 10%", client.SuccessStyle)
printBracker(dps50stats, "10% < ? < 90%", client.WarningStyle)
printBracker(dps90stats, "? > 90%", client.ErrorStyle)
Expand Down

0 comments on commit bc29f7b

Please sign in to comment.