Skip to content

Commit

Permalink
Rename BenchmarkTelemetrygen* to Benchmark*
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonip committed Feb 21, 2024
1 parent cd9433b commit 7eec464
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions cmd/apmbench/bench_otlp.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func commonConfigWithHTTPPath(httpPath string) common.Config {
}
}

func BenchmarkTelemetrygenOTLPLogs(b *testing.B, l *rate.Limiter) {
func BenchmarkOTLPLogs(b *testing.B, l *rate.Limiter) {
config := logs.Config{
Config: commonConfigWithHTTPPath("/v1/logs"),
NumLogs: b.N,
Expand All @@ -78,7 +78,7 @@ func BenchmarkTelemetrygenOTLPLogs(b *testing.B, l *rate.Limiter) {
}
}

func BenchmarkTelemetrygenOTLPTraces(b *testing.B, l *rate.Limiter) {
func BenchmarkOTLPTraces(b *testing.B, l *rate.Limiter) {
config := traces.Config{
Config: commonConfigWithHTTPPath("/v1/traces"),
NumTraces: b.N,
Expand All @@ -95,7 +95,7 @@ func BenchmarkTelemetrygenOTLPTraces(b *testing.B, l *rate.Limiter) {
}
}

func BenchmarkTelemetrygenOTLPMetrics(b *testing.B, l *rate.Limiter) {
func BenchmarkOTLPMetrics(b *testing.B, l *rate.Limiter) {
config := metrics.Config{
Config: commonConfigWithHTTPPath("/v1/metrics"),
NumMetrics: b.N,
Expand Down
7 changes: 3 additions & 4 deletions cmd/apmbench/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,15 @@ func main() {
extraMetrics,
resetStoreFunc,
Benchmark1000Transactions,
BenchmarkOTLPTraces,
BenchmarkAgentAll,
BenchmarkAgentGo,
BenchmarkAgentNodeJS,
BenchmarkAgentPython,
BenchmarkAgentRuby,
Benchmark10000AggregationGroups,
BenchmarkTelemetrygenOTLPTraces,
BenchmarkTelemetrygenOTLPLogs,
BenchmarkTelemetrygenOTLPMetrics,
BenchmarkOTLPTraces,
BenchmarkOTLPLogs,
BenchmarkOTLPMetrics,
); err != nil {
logger.Fatal("failed to run benchmarks", zap.Error(err))
}
Expand Down

0 comments on commit 7eec464

Please sign in to comment.