Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sysulq committed May 31, 2023
1 parent 97985fa commit 99dbcdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simplelru/lru_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,13 @@ func BenchmarkAdd(b *testing.B) {

b.Run("Add with small keys", func(b *testing.B) {
for i := 0; i < b.N; i++ {
l.Add(i%100, true)
l.Add(i%100, "this is a foo bar")
}
})

b.Run("Add with large keys", func(b *testing.B) {
for i := 0; i < b.N; i++ {
l.Add(i%10000, true)
l.Add(i%10000, "this is a foo bar")
}
})
}

0 comments on commit 99dbcdc

Please sign in to comment.