Skip to content

Commit

Permalink
chore: benchmark changelog.Set()
Browse files Browse the repository at this point in the history
  • Loading branch information
geyslan committed Dec 4, 2024
1 parent 8f63209 commit ec0e756
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/changelog/changelog_benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func Benchmark_enforceSizeBoundary(b *testing.B) {
}
}

func Benchmark_setAt(b *testing.B) {
func Benchmark_Set(b *testing.B) {
// Test cases where the Changelog needs to enforce the size boundary
testCasesAllScenarios := []struct {
value int
Expand Down Expand Up @@ -148,7 +148,7 @@ func Benchmark_setAt(b *testing.B) {
clv := NewChangelog[int](3)
b.StartTimer()
for _, tc := range testCasesAllScenarios {
clv.setAt(tc.value, tc.time)
clv.Set(tc.value, tc.time)
}
}
})
Expand Down Expand Up @@ -226,7 +226,7 @@ func Benchmark_setAt(b *testing.B) {
clv := NewChangelog[int](15)
b.StartTimer()
for _, tc := range testCasesWithinLimit {
clv.setAt(tc.value, tc.time)
clv.Set(tc.value, tc.time)
}
}
})
Expand Down

0 comments on commit ec0e756

Please sign in to comment.