open-telemetry
opentelemetry-collector
BlogDocsChangelog

[pdata/pprofile] add ProfileCount()

#14239Merged
Comparing
florianl:profiles-count
(
3ac14bc
) with
main
(
152042e
)
CodSpeed Performance Gauge
-37%
Regressions
1
Untouched
72

Benchmarks

Failed

zstdNoConcurrency
config/confighttp/compressor_test.go::BenchmarkCompression
Regression
CodSpeed Performance Gauge
-37%
36.5 µs58.1 µs

Passed

HTTP/2.0,_shared_client_(like_load_balancer)
config/confighttp/server_test.go::BenchmarkHttpRequest
CodSpeed Performance Gauge
N/A
< 1 ns< 1 ns
lg_log_request/raw_bytes_4850/compressed_bytes_253/compressor_gzip
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
+6%
36.2 µs34.2 µs
BenchmarkTraceSizeBytes
processor/batchprocessor/batch_processor_test.go
CodSpeed Performance Gauge
+3%
430.3 µs418.6 µs
BenchmarkBatchMetricProcessor2k
processor/batchprocessor/batch_processor_test.go
CodSpeed Performance Gauge
+1%
135.3 ms133.4 ms
BenchmarkMetricsToProto
pdata/pmetric/pb_test.go
CodSpeed Performance Gauge
+1%
6 µs6 µs
sm_trace_request/raw_bytes_240/compressed_bytes_211/compressor_gzip
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
+1%
24.4 µs24.3 µs
sm_metric_request/raw_bytes_183/compressed_bytes_138/compressor_zstd
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
+1%
7.2 µs7.1 µs
BenchmarkProfilesToProto
pdata/pprofile/pb_test.go
CodSpeed Performance Gauge
+1%
1.6 µs1.6 µs
sm_trace_request/raw_bytes_240/compressed_bytes_258/compressor_snappy
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
0%
782 ns781 ns
BenchmarkTraceSizeSpanCount
processor/batchprocessor/batch_processor_test.go
CodSpeed Performance Gauge
0%
29 ns29 ns
HTTP/1.1,_client_per_thread_(like_single_app)
config/confighttp/server_test.go::BenchmarkHttpRequest
CodSpeed Performance Gauge
N/A
< 1 ns< 1 ns
BenchmarkSplittingBasedOnItemCountManyLogsSlightlyAboveLimit
exporter/exporterhelper/internal/queuebatch/logs_batch_test.go
CodSpeed Performance Gauge
+19%
42.5 ms35.8 ms
BenchmarkSplittingBasedOnByteSizeManySmallLogs
exporter/exporterhelper/internal/queuebatch/logs_batch_test.go
CodSpeed Performance Gauge
+15%
4.4 s3.8 s
BenchmarkSplittingBasedOnItemCountHugeTraces
exporter/exporterhelper/internal/queuebatch/traces_batch_test.go
CodSpeed Performance Gauge
+9%
47.1 ms43.2 ms
lg_trace_request/raw_bytes_7250/compressed_bytes_313/compressor_gzip
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
+8%
49.6 µs45.9 µs
md_log_request/raw_bytes_242/compressed_bytes_220/compressor_gzip
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
+6%
22.9 µs21.5 µs
BenchmarkSplittingBasedOnItemCountManySmallTraces
exporter/exporterhelper/internal/queuebatch/traces_batch_test.go
CodSpeed Performance Gauge
+6%
3.6 ms3.4 ms
BenchmarkSplittingBasedOnByteSizeHugeLogs
exporter/exporterhelper/internal/queuebatch/logs_batch_test.go
CodSpeed Performance Gauge
+5%
96.1 ms91.9 ms
BenchmarkLogsUsage
pdata/plog/logs_test.go
CodSpeed Performance Gauge
+1%
2.8 µs2.7 µs
sm_log_request/raw_bytes_160/compressed_bytes_178/compressor_snappy
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
+1%
701 ns691 ns
BenchmarkMetricsUsage
pdata/pmetric/metrics_test.go
CodSpeed Performance Gauge
+1%
1.5 µs1.5 µs
BenchmarkSplittingBasedOnItemCountManySmallMetrics
exporter/exporterhelper/internal/queuebatch/metrics_batch_test.go
CodSpeed Performance Gauge
+1%
6.9 ms6.8 ms
BenchmarkSplittingBasedOnItemCountManyTracesSlightlyAboveLimit
exporter/exporterhelper/internal/queuebatch/traces_batch_test.go
CodSpeed Performance Gauge
+1%
48.8 ms48.4 ms
BenchmarkProfilesFromProto
pdata/pprofile/pb_test.go
CodSpeed Performance Gauge
+1%
5.5 µs5.4 µs
BenchmarkTracesToProto
pdata/ptrace/pb_test.go
CodSpeed Performance Gauge
0%
6.3 µs6.3 µs
BenchmarkMetricsFromProto
pdata/pmetric/pb_test.go
CodSpeed Performance Gauge
0%
27.9 µs27.8 µs
md_metric_request/raw_bytes_376/compressed_bytes_215/compressor_snappy
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
0%
841 ns841 ns
BenchmarkMetricsMarshalJSON
pdata/pmetric/metrics_test.go
CodSpeed Performance Gauge
0%
5.1 µs5.1 µs
BenchmarkFromLocationIndices
pdata/pprofile/locations_test.go
CodSpeed Performance Gauge
0%
1.7 µs1.7 µs
with_a_hundred_values_to_loop_through
pdata/pprofile/string_table_test.go::BenchmarkSetString
CodSpeed Performance Gauge
0%
130 ns130 ns
with_an_existing_value
pdata/pprofile/string_table_test.go::BenchmarkSetString
CodSpeed Performance Gauge
0%
29 ns29 ns
with_a_new_value
pdata/pprofile/string_table_test.go::BenchmarkSetString
CodSpeed Performance Gauge
0%
29 ns29 ns
md_trace_request/raw_bytes_338/compressed_bytes_294/compressor_snappy
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
0%
881 ns881 ns
sm_metric_request/raw_bytes_183/compressed_bytes_155/compressor_snappy
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
0%
691 ns691 ns
BenchmarkFromAttributeIndices
pdata/pprofile/attributes_test.go
CodSpeed Performance Gauge
0%
210 ns210 ns
with_a_duplicate_value
pdata/pprofile/string_table_test.go::BenchmarkSetString
CodSpeed Performance Gauge
0%
29 ns29 ns
lg_log_request/raw_bytes_4850/compressed_bytes_463/compressor_snappy
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
0%
1.9 µs1.9 µs
BenchmarkTracesMarshalJSON
pdata/ptrace/traces_test.go
CodSpeed Performance Gauge
0%
5.9 µs5.9 µs
md_metric_request/raw_bytes_376/compressed_bytes_193/compressor_gzip
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
0%
24.2 µs24.2 µs
BenchmarkTracesFromProto
pdata/ptrace/pb_test.go
CodSpeed Performance Gauge
0%
15.5 µs15.5 µs
BenchmarkLogsFromProto
pdata/plog/pb_test.go
CodSpeed Performance Gauge
0%
9.7 µs9.7 µs
BenchmarkLogsToProto
pdata/plog/pb_test.go
CodSpeed Performance Gauge
0%
4.3 µs4.3 µs
BenchmarkLogsMarshalJSON
pdata/plog/logs_test.go
CodSpeed Performance Gauge
0%
3.8 µs3.8 µs
md_log_request/raw_bytes_242/compressed_bytes_210/compressor_zstd
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
0%
9.7 µs9.7 µs
BenchmarkProfilesUsage
pdata/pprofile/profiles_test.go
CodSpeed Performance Gauge
0%
3.5 µs3.5 µs
md_trace_request/raw_bytes_338/compressed_bytes_265/compressor_zstd
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
0%
8.9 µs8.9 µs
BenchmarkSplittingBasedOnItemCountManySmallLogs
exporter/exporterhelper/internal/queuebatch/logs_batch_test.go
CodSpeed Performance Gauge
0%
2.4 ms2.4 ms
lg_metric_request/raw_bytes_10991/compressed_bytes_587/compressor_gzip
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
0%
76.2 µs76.5 µs
md_trace_request/raw_bytes_338/compressed_bytes_256/compressor_gzip
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
0%
26.1 µs26.2 µs
sm_trace_request/raw_bytes_240/compressed_bytes_211/compressor_zstd
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
-1%
8.1 µs8.2 µs
lg_metric_request/raw_bytes_10991/compressed_bytes_538/compressor_zstd
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
-1%
16.8 µs16.9 µs
sm_log_request/raw_bytes_160/compressed_bytes_164/compressor_gzip
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
-1%
19.2 µs19.4 µs
BenchmarkMemoryQueueWaitForResult
exporter/exporterhelper/internal/queue/memory_queue_test.go
CodSpeed Performance Gauge
-1%
69.2 µs69.7 µs
sm_log_request/raw_bytes_160/compressed_bytes_159/compressor_zstd
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
-1%
9 µs9.1 µs
lg_log_request/raw_bytes_4850/compressed_bytes_217/compressor_zstd
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
-1%
11.1 µs11.2 µs
BenchmarkPersistentQueue
exporter/exporterhelper/internal/queue/persistent_queue_test.go
CodSpeed Performance Gauge
-1%
200.6 µs203 µs
BenchmarkProfilesMarshalJSON
pdata/pprofile/profiles_test.go
CodSpeed Performance Gauge
-1%
4.2 µs4.3 µs
lg_trace_request/raw_bytes_7250/compressed_bytes_615/compressor_snappy
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
-1%
2.4 µs2.4 µs
BenchmarkTracesUsage
pdata/ptrace/traces_test.go
CodSpeed Performance Gauge
-1%
4.8 µs4.9 µs
md_log_request/raw_bytes_242/compressed_bytes_260/compressor_snappy
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
-1%
791 ns801 ns
md_metric_request/raw_bytes_376/compressed_bytes_203/compressor_zstd
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
-2%
8.3 µs8.4 µs
BenchmarkSplittingBasedOnItemCountHugeMetrics
exporter/exporterhelper/internal/queuebatch/metrics_batch_test.go
CodSpeed Performance Gauge
-2%
92 ms94.3 ms
BenchmarkSplittingBasedOnItemCountHugeLogs
exporter/exporterhelper/internal/queuebatch/logs_batch_test.go
CodSpeed Performance Gauge
-4%
39.2 ms40.7 ms
BenchmarkMultiBatchMetricProcessor2k
processor/batchprocessor/batch_processor_test.go
CodSpeed Performance Gauge
-5%
132.5 ms138.8 ms
BenchmarkSplittingBasedOnItemCountManyMetricsSlightlyAboveLimit
exporter/exporterhelper/internal/queuebatch/metrics_batch_test.go
CodSpeed Performance Gauge
-11%
84.9 ms95.4 ms
HTTP/2.0,_client_per_thread_(like_single_app)
config/confighttp/server_test.go::BenchmarkHttpRequest
CodSpeed Performance Gauge
N/A
< 1 ns< 1 ns
HTTP/1.1,_shared_client_(like_load_balancer)
config/confighttp/server_test.go::BenchmarkHttpRequest
CodSpeed Performance Gauge
N/A
< 1 ns< 1 ns
lg_trace_request/raw_bytes_7250/compressed_bytes_269/compressor_zstd
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
-1%
11 µs11.2 µs
lg_metric_request/raw_bytes_10991/compressed_bytes_1033/compressor_snappy
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
-2%
4.2 µs4.2 µs
sm_metric_request/raw_bytes_183/compressed_bytes_141/compressor_gzip
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
-3%
19.6 µs20.2 µs
BenchmarkSplittingBasedOnByteSizeManyLogsSlightlyAboveLimit
exporter/exporterhelper/internal/queuebatch/logs_batch_test.go
CodSpeed Performance Gauge
-14%
89 ms104 ms
zstdWithConcurrency
config/confighttp/compressor_test.go::BenchmarkCompression
CodSpeed Performance Gauge
-17%
24.5 µs29.5 µs

Commits

Click on a commit to change the comparison range
Base
main
152042e
+1.47%
[pdata/pprofile] add ProfileCount() Similar to `(Logs) LogRecordCount() int`, `(Metrics) MetricCount() int` and `(Traces) SpanCount() int` add `ProfileCount()`. Signed-off-by: Florian Lehner <florian.lehner@elastic.co>
2cf9ba9
6 days ago
by florianl
-38.71%
Merge branch 'main' into profiles-count
3ac14bc
6 days ago
by florianl
© 2025 CodSpeed Technology
Home Terms Privacy Docs