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

Function BenchmarkAppendFlush

tempodb/wal/wal_test.go:424–436  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

422}
423
424func BenchmarkAppendFlush(b *testing.B) {
425 for _, enc := range encoding.AllEncodingsForWrites() {
426 version := enc.Version()
427 b.Run(version, func(b *testing.B) {
428 b.Run("Append", func(b *testing.B) {
429 runWALBenchmarkWithAppendMode(b, version, b.N, false, nil)
430 })
431 b.Run("AppendTrace", func(b *testing.B) {
432 runWALBenchmarkWithAppendMode(b, version, b.N, true, nil)
433 })
434 })
435 }
436}
437
438func BenchmarkFindTraceByID(b *testing.B) {
439 for _, enc := range encoding.AllEncodingsForWrites() {

Callers

nothing calls this directly

Calls 4

AllEncodingsForWritesFunction · 0.92
VersionMethod · 0.65
RunMethod · 0.45

Tested by

no test coverage detected