(b *testing.B)
| 141 | } |
| 142 | |
| 143 | func BenchmarkCache(b *testing.B) { |
| 144 | for _, storageType := range []string{"bbolt", "hashmap"} { |
| 145 | benchmarkCacheWriting(b, storageType, 32, 8, false) |
| 146 | benchmarkCacheWriting(b, storageType, 32, 8, true) |
| 147 | benchmarkCacheWriting(b, storageType, 32, 1024, false) |
| 148 | benchmarkCacheWriting(b, storageType, 32, 1024, true) |
| 149 | benchmarkCacheWriting(b, storageType, 512, 1024, false) |
| 150 | benchmarkCacheWriting(b, storageType, 512, 1024, true) |
| 151 | |
| 152 | benchmarkCacheReadWrite(b, storageType, 32, 8, false) |
| 153 | benchmarkCacheReadWrite(b, storageType, 32, 8, true) |
| 154 | benchmarkCacheReadWrite(b, storageType, 32, 1024, false) |
| 155 | benchmarkCacheReadWrite(b, storageType, 32, 1024, true) |
| 156 | benchmarkCacheReadWrite(b, storageType, 512, 1024, false) |
| 157 | benchmarkCacheReadWrite(b, storageType, 512, 1024, true) |
| 158 | } |
| 159 | } |
nothing calls this directly
no test coverage detected