Skip to content

Commit

Permalink
Sarthak | Removes RequestsPerSecond from the report
Browse files Browse the repository at this point in the history
  • Loading branch information
SarthakMakhija committed Aug 18, 2023
1 parent a486556 commit fdfc528
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
6 changes: 0 additions & 6 deletions report/reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ type Report struct {
// TODO: Total connections
type LoadMetrics struct {
TotalRequests uint
RequestsPerSecond float64
SuccessCount uint
ErrorCount uint
ErrorCountByType map[string]uint
Expand Down Expand Up @@ -124,11 +123,6 @@ func (reporter *Reporter) collectLoadMetrics() {

reporter.report.Load.TotalTime = timeToCompleteLoad
reporter.report.Load.TotalRequests = totalGeneratedLoad
reporter.report.Load.RequestsPerSecond = float64(
totalGeneratedLoad,
) / float64(
timeToCompleteLoad.Seconds(),
)
}()
}

Expand Down
1 change: 0 additions & 1 deletion report/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ var templateText = `
Summary:
LoadMetrics:
TotalRequests: {{ formatNumberUint .Load.TotalRequests }}
RequestsPerSecond: {{ formatNumberFloat .Load.RequestsPerSecond }}
SuccessCount: {{ formatNumberUint .Load.SuccessCount }}
ErrorCount: {{ formatNumberUint .Load.ErrorCount }}
TotalPayloadSize: {{ formatNumberInt64 .Load.TotalPayloadLengthBytes }} bytes
Expand Down
4 changes: 0 additions & 4 deletions report/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ func TestPrintsTheReportWithLoadAndResponseMetrics(t *testing.T) {
Summary:
LoadMetrics:
TotalRequests: 1000
RequestsPerSecond: 55.3200
SuccessCount: 999
ErrorCount: 1
TotalPayloadSize: 2000 bytes
Expand Down Expand Up @@ -49,7 +48,6 @@ Summary:
report := &Report{
Load: LoadMetrics{
TotalRequests: 1000,
RequestsPerSecond: 55.32,
SuccessCount: 999,
ErrorCount: 1,
ErrorCountByType: map[string]uint{"load error": 1},
Expand Down Expand Up @@ -83,7 +81,6 @@ func TestPrintsTheReportWithLoadMetrics(t *testing.T) {
Summary:
LoadMetrics:
TotalRequests: 1000
RequestsPerSecond: 55.3200
SuccessCount: 999
ErrorCount: 1
TotalPayloadSize: 2000 bytes
Expand All @@ -103,7 +100,6 @@ Summary:
report := &Report{
Load: LoadMetrics{
TotalRequests: 1000,
RequestsPerSecond: 55.32,
SuccessCount: 999,
ErrorCount: 1,
ErrorCountByType: map[string]uint{"load error": 1},
Expand Down

0 comments on commit fdfc528

Please sign in to comment.