(b *testing.B)
| 454 | } |
| 455 | |
| 456 | func BenchmarkFindUnknownTraceID(b *testing.B) { |
| 457 | for _, enc := range encoding.AllEncodingsForWrites() { |
| 458 | version := enc.Version() |
| 459 | b.Run(version, func(b *testing.B) { |
| 460 | runWALBenchmark(b, version, 1, func(_ [][]byte, _ []*tempopb.Trace, block common.WALBlock) { |
| 461 | for i := 0; i < b.N; i++ { |
| 462 | _, err := block.FindTraceByID(context.Background(), common.ID{}, common.DefaultSearchOptions()) |
| 463 | require.NoError(b, err) |
| 464 | } |
| 465 | }) |
| 466 | }) |
| 467 | } |
| 468 | } |
| 469 | |
| 470 | func BenchmarkSearch(b *testing.B) { |
| 471 | for _, enc := range encoding.AllEncodingsForWrites() { |
nothing calls this directly
no test coverage detected