Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIXED] typos in comments #1581

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bench/bench.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type Sample struct {
End time.Time
}

// SampleGroup for a number of samples, the group is a Sample itself agregating the values the Samples
// SampleGroup for a number of samples, the group is a Sample itself aggregating the values the Samples
type SampleGroup struct {
Sample
Samples []*Sample
Expand Down Expand Up @@ -156,7 +156,7 @@ func (s *Sample) Throughput() float64 {
return float64(s.MsgBytes) / s.Duration().Seconds()
}

// Rate of meessages in the job per second
// Rate of messages in the job per second
func (s *Sample) Rate() int64 {
return int64(float64(s.JobMsgCnt) / s.Duration().Seconds())
}
Expand Down
2 changes: 1 addition & 1 deletion bench/benchlib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func TestGroupThoughput(t *testing.T) {
sg.AddSample(millionMessagesSecondSample(2))
sg.AddSample(millionMessagesSecondSample(3))
if sg.Throughput() != 2*Million*MsgSize {
t.Fatalf("Expected througput at %d million bytes/sec", 2*MsgSize)
t.Fatalf("Expected throughput at %d million bytes/sec", 2*MsgSize)
}
}

Expand Down