(b *testing.B)
| 3710 | } |
| 3711 | |
| 3712 | func BenchmarkRing_ShuffleShard_ShardSize_0(b *testing.B) { |
| 3713 | const ( |
| 3714 | numInstances = 90 |
| 3715 | numZones = 3 |
| 3716 | numTokens = 512 |
| 3717 | shardSize = 0 |
| 3718 | cacheEnabled = false |
| 3719 | ) |
| 3720 | |
| 3721 | benchmarkShuffleSharding(b, numInstances, numZones, numTokens, shardSize, cacheEnabled) |
| 3722 | } |
| 3723 | |
| 3724 | func benchmarkShuffleSharding(b *testing.B, numInstances, numZones, numTokens, shardSize int, cache bool) { |
| 3725 | // Initialise the ring. |
nothing calls this directly
no test coverage detected