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

Function runWALBenchmark

tempodb/wal/wal_test.go:503–505  ·  view source on GitHub ↗
(b *testing.B, encoding string, flushCount int, runner func([][]byte, []*tempopb.Trace, common.WALBlock))

Source from the content-addressed store, hash-verified

501}
502
503func runWALBenchmark(b *testing.B, encoding string, flushCount int, runner func([][]byte, []*tempopb.Trace, common.WALBlock)) {
504 runWALBenchmarkWithAppendMode(b, encoding, flushCount, false, runner)
505}
506
507func runWALBenchmarkWithAppendMode(b *testing.B, encoding string, flushCount int, appendTrace bool, runner func([][]byte, []*tempopb.Trace, common.WALBlock)) {
508 wal, err := New(&Config{

Callers 3

BenchmarkFindTraceByIDFunction · 0.85
BenchmarkSearchFunction · 0.85

Calls 1

Tested by

no test coverage detected