Skip to content

Commit

Permalink
Tweak redis pool settings for benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechVitek committed Aug 8, 2024
1 parent 0ef2c4a commit 408208f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions httprateredis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ func BenchmarkLocalCounter(b *testing.B) {
limitCounter, err := httprateredis.NewRedisLimitCounter(&httprateredis.Config{
Host: "localhost",
Port: 6379,
MaxIdle: 500,
MaxActive: 500,
MaxIdle: 100,
MaxActive: 200,
DBIndex: 0,
ClientName: "httprateredis_test",
PrefixKey: fmt.Sprintf("httprate:test:%v", rand.Int31n(100000)), // Unique key for each test
Expand Down

0 comments on commit 408208f

Please sign in to comment.