MCPcopy
hub / github.com/grafana/dskit / BenchmarkRing_ShuffleShard_ShardSize_0

Function BenchmarkRing_ShuffleShard_ShardSize_0

ring/ring_test.go:3712–3722  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

3710}
3711
3712func 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
3724func benchmarkShuffleSharding(b *testing.B, numInstances, numZones, numTokens, shardSize int, cache bool) {
3725 // Initialise the ring.

Callers

nothing calls this directly

Calls 1

benchmarkShuffleShardingFunction · 0.85

Tested by

no test coverage detected