(b *testing.B)
| 54 | } |
| 55 | } |
| 56 | func BenchmarkAppendToCache(b *testing.B) { |
| 57 | for _, shards := range []int{1, 512, 1024, 8192} { |
| 58 | b.Run(fmt.Sprintf("%d-shards", shards), func(b *testing.B) { |
| 59 | appendToCache(b, shards, 100*time.Second, b.N) |
| 60 | }) |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | func BenchmarkReadFromCache(b *testing.B) { |
| 65 | for _, shards := range []int{1, 512, 1024, 8192} { |
nothing calls this directly
no test coverage detected
searching dependent graphs…