Skip to content

Commit

Permalink
add new benchmarks to benchmarking platform
Browse files Browse the repository at this point in the history
Signed-off-by: Eliott Bouhana <[email protected]>
  • Loading branch information
eliottness committed Feb 3, 2025
1 parent 681eae1 commit cd86428
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ variables:
INDEX_FILE: index.txt
KUBERNETES_SERVICE_ACCOUNT_OVERWRITE: dd-trace-go
FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY: "true"
BENCHMARK_TARGETS: "BenchmarkStartRequestSpan|BenchmarkHttpServeTrace|BenchmarkTracerAddSpans|BenchmarkStartSpan|BenchmarkSingleSpanRetention|BenchmarkOTelApiWithCustomTags|BenchmarkInjectW3C|BenchmarkExtractW3C|BenchmarkPartialFlushing|BenchmarkGraphQL|BenchmarkSampleWAFContext|BenchmarkCaptureStackTrace|BenchmarkSetTagString|BenchmarkSetTagStringPtr|BenchmarkSetTagMetric|BenchmarkSetTagStringer"
BENCHMARK_TARGETS: "BenchmarkStartRequestSpan|BenchmarkHttpServeTrace|BenchmarkTracerAddSpans|BenchmarkStartSpan|BenchmarkSingleSpanRetention|BenchmarkOTelApiWithCustomTags|BenchmarkInjectW3C|BenchmarkExtractW3C|BenchmarkPartialFlushing|BenchmarkGraphQL|BenchmarkSampleWAFContext|BenchmarkCaptureStackTrace|BenchmarkSetTagString|BenchmarkSetTagStringPtr|BenchmarkSetTagMetric|BenchmarkSetTagStringer|BenchmarkLogs|BenchmarkWorstCaseScenarioFloodLogging|BenchmarkMetrics|BenchmarkWorstCaseScenarioFloodMetrics"

include:
- ".gitlab/benchmarks.yml"
Expand Down
3 changes: 2 additions & 1 deletion internal/newtelemetry/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,6 @@ func BenchmarkMetrics(b *testing.B) {
}

func BenchmarkWorstCaseScenarioFloodMetrics(b *testing.B) {
b.ReportAllocs()
nbSameMetric := 10
nbDifferentMetrics := 100
nbGoroutines := 25
Expand All @@ -1449,6 +1448,7 @@ func BenchmarkWorstCaseScenarioFloodMetrics(b *testing.B) {
}

b.Run("get-handle", func(b *testing.B) {
b.ReportAllocs()
c, err := NewClient("test-service", "test-env", "1.0.0", clientConfig)
require.NoError(b, err)

Expand Down Expand Up @@ -1478,6 +1478,7 @@ func BenchmarkWorstCaseScenarioFloodMetrics(b *testing.B) {
})

b.Run("handle-reused", func(b *testing.B) {
b.ReportAllocs()
c, err := NewClient("test-service", "test-env", "1.0.0", clientConfig)
require.NoError(b, err)

Expand Down

0 comments on commit cd86428

Please sign in to comment.