MCPcopy
hub / github.com/grafana/tempo / benchmarkPollTenant

Function benchmarkPollTenant

tempodb/blocklist/poller_test.go:1280–1286  ·  view source on GitHub ↗
(b *testing.B, poller *Poller, tenant string, previous *List)

Source from the content-addressed store, hash-verified

1278}
1279
1280func benchmarkPollTenant(b *testing.B, poller *Poller, tenant string, previous *List) {
1281 b.ResetTimer()
1282 for n := 0; n < b.N; n++ {
1283 _, _, err := poller.pollTenantBlocks(context.Background(), tenant, previous)
1284 require.NoError(b, err)
1285 }
1286}
1287
1288func writeNewBlocksForTenant(ctx context.Context, b *testing.B, w backend.Writer, tenant string, count int) {
1289 var (

Callers 1

BenchmarkPoller10kFunction · 0.85

Calls 1

pollTenantBlocksMethod · 0.80

Tested by

no test coverage detected