Skip to content

Commit

Permalink
add benchmark
Browse files Browse the repository at this point in the history
Signed-off-by: Murphy Chen <[email protected]>
  • Loading branch information
Frapschen committed Oct 8, 2024
1 parent f3fd9d9 commit c600907
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions processor/routingprocessor/logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,15 @@ func TestLogs_RoutingWorks_ResourceAttribute_WithOTTL_Ordered(t *testing.T) {
}
}

/*
# before
BenchmarkLogs_Routing
BenchmarkLogs_Routing-8 18951 63102 ns/op
# after
BenchmarkLogs_Routing
BenchmarkLogs_Routing-8 21171 57387 ns/op
*/
func BenchmarkLogs_Routing(t *testing.B) {
defaultExp := &mockLogsExporter{}
lExpFirst := &mockLogsExporter{}
Expand Down

0 comments on commit c600907

Please sign in to comment.