(b *testing.B)
| 83 | } |
| 84 | |
| 85 | func BenchmarkReadNonExistentValue(b *testing.B) { |
| 86 | key := cacheableT{"foo"} |
| 87 | |
| 88 | z := NewCache() |
| 89 | for i := 0; i < b.N; i++ { |
| 90 | z.Read(&key) |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | func BenchmarkWriteSameValue(b *testing.B) { |
| 95 | key := cacheableT{"foo"} |