Skip to content

Commit

Permalink
fix benchmark names
Browse files Browse the repository at this point in the history
  • Loading branch information
phuslu committed Mar 21, 2024
1 parent 8b1f351 commit f72dd4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ttl_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ func TestTTLCacheStats(t *testing.T) {
}
}

func BenchmarkCacheRand(b *testing.B) {
func BenchmarkTTLCacheRand(b *testing.B) {
cache := NewTTLCache[int64, int64](8192)

trace := make([]int64, b.N*2)
Expand All @@ -428,7 +428,7 @@ func BenchmarkCacheRand(b *testing.B) {
b.Logf("hit: %d miss: %d ratio: %f", hit, miss, float64(hit)/float64(hit+miss))
}

func BenchmarkCacheFreq(b *testing.B) {
func BenchmarkTTLCacheFreq(b *testing.B) {
cache := NewTTLCache[int64, int64](8192)

trace := make([]int64, b.N*2)
Expand Down Expand Up @@ -457,7 +457,7 @@ func BenchmarkCacheFreq(b *testing.B) {
b.Logf("hit: %d miss: %d ratio: %f", hit, miss, float64(hit)/float64(hit+miss))
}

func BenchmarkCacheTTL(b *testing.B) {
func BenchmarkTTLCacheTTL(b *testing.B) {
cache := NewTTLCache[int64, int64](8192)

trace := make([]int64, b.N*2)
Expand Down

0 comments on commit f72dd4e

Please sign in to comment.