Skip to content

Commit

Permalink
Rename benchmark function
Browse files Browse the repository at this point in the history
  • Loading branch information
jimchen committed Aug 22, 2024
1 parent e03326b commit c97812b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmarks/lru_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/pioz/faker"
)

func BenchmarkLRU_Rand(b *testing.B) {
func BenchmarkCache_Rand(b *testing.B) {
l, err := lru.New[int64, int64](8192)
if err != nil {
b.Fatalf("err: %v", err)
Expand All @@ -33,7 +33,7 @@ func BenchmarkLRU_Rand(b *testing.B) {
b.Logf("hit: %d miss: %d ratio: %f", hit, miss, float64(hit)/float64(hit+miss))
}

func BenchmarkLRU_Freq(b *testing.B) {
func BenchmarkCache_Freq(b *testing.B) {
l, err := lru.New[int64, int64](8192)
if err != nil {
b.Fatalf("err: %v", err)
Expand Down

0 comments on commit c97812b

Please sign in to comment.