-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Profiler][cleanup] Shorten libdatadog helper functions name #6069
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Execution-Time Benchmarks Report ⏱️Execution-time results for samples comparing the following branches/commits: Execution-time benchmarks measure the whole time it takes to execute a program. And are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are shown in red. The following thresholds were used for comparing the execution times:
Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard. Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph). gantt
title Execution time (ms) FakeDbCommand (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6069) - mean (70ms) : 67, 72
. : milestone, 70,
master - mean (70ms) : 67, 73
. : milestone, 70,
section CallTarget+Inlining+NGEN
This PR (6069) - mean (1,098ms) : 1076, 1120
. : milestone, 1098,
master - mean (1,105ms) : 1067, 1143
. : milestone, 1105,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6069) - mean (109ms) : 106, 111
. : milestone, 109,
master - mean (109ms) : 105, 112
. : milestone, 109,
section CallTarget+Inlining+NGEN
This PR (6069) - mean (770ms) : 750, 790
. : milestone, 770,
master - mean (766ms) : 751, 782
. : milestone, 766,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6069) - mean (92ms) : 89, 95
. : milestone, 92,
master - mean (92ms) : 90, 94
. : milestone, 92,
section CallTarget+Inlining+NGEN
This PR (6069) - mean (738ms) : 679, 796
. : milestone, 738,
master - mean (727ms) : 707, 747
. : milestone, 727,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6069) - mean (190ms) : 187, 192
. : milestone, 190,
master - mean (191ms) : 187, 195
. : milestone, 191,
section CallTarget+Inlining+NGEN
This PR (6069) - mean (1,194ms) : 1169, 1220
. : milestone, 1194,
master - mean (1,202ms) : 1165, 1240
. : milestone, 1202,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6069) - mean (276ms) : 272, 279
. : milestone, 276,
master - mean (276ms) : 270, 281
. : milestone, 276,
section CallTarget+Inlining+NGEN
This PR (6069) - mean (939ms) : 921, 957
. : milestone, 939,
master - mean (938ms) : 918, 958
. : milestone, 938,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6069) - mean (265ms) : 261, 269
. : milestone, 265,
master - mean (265ms) : 261, 269
. : milestone, 265,
section CallTarget+Inlining+NGEN
This PR (6069) - mean (927ms) : 909, 945
. : milestone, 927,
master - mean (922ms) : 906, 939
. : milestone, 922,
|
Datadog ReportBranch report: ✅ 0 Failed, 369783 Passed, 2354 Skipped, 17h 8m 51.9s Total Time New Flaky Tests (2)
|
Benchmarks Report for tracer 🐌Benchmarks for #6069 compared to master:
The following thresholds were used for comparing the benchmark speeds:
Allocation changes below 0.5% are ignored. Benchmark detailsBenchmarks.Trace.ActivityBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AgentWriterBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AspNetCoreBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.DbCommandBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ElasticsearchBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.GraphQLBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ILoggerBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.RedisBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SpanBenchmark - Slower
|
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 | 1.123 | 477.11 | 535.84 | |
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑netcoreapp3.1 | 1.119 | 594.53 | 665.16 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 407ns | 0.361ns | 1.4ns | 0.00818 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 594ns | 1.01ns | 3.93ns | 0.00798 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 654ns | 1.56ns | 5.84ns | 0.0917 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 477ns | 0.235ns | 0.911ns | 0.00966 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 759ns | 1.06ns | 4.09ns | 0.00938 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 888ns | 1.04ns | 4.01ns | 0.105 | 0 | 0 | 658 B |
#6069 | StartFinishSpan |
net6.0 | 403ns | 0.433ns | 1.68ns | 0.00806 | 0 | 0 | 576 B |
#6069 | StartFinishSpan |
netcoreapp3.1 | 665ns | 0.438ns | 1.7ns | 0.00771 | 0 | 0 | 576 B |
#6069 | StartFinishSpan |
net472 | 673ns | 1.83ns | 7.07ns | 0.0916 | 0 | 0 | 578 B |
#6069 | StartFinishScope |
net6.0 | 536ns | 0.194ns | 0.75ns | 0.0099 | 0 | 0 | 696 B |
#6069 | StartFinishScope |
netcoreapp3.1 | 749ns | 0.345ns | 1.34ns | 0.00936 | 0 | 0 | 696 B |
#6069 | StartFinishScope |
net472 | 894ns | 4.07ns | 15.8ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #6069
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0
1.126
675.74
599.92
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0 | 1.126 | 675.74 | 599.92 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 676ns | 0.514ns | 1.99ns | 0.00988 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 982ns | 0.697ns | 2.61ns | 0.00936 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.11μs | 0.875ns | 3.39ns | 0.105 | 0 | 0 | 658 B |
#6069 | RunOnMethodBegin |
net6.0 | 600ns | 0.256ns | 0.923ns | 0.0099 | 0 | 0 | 696 B |
#6069 | RunOnMethodBegin |
netcoreapp3.1 | 939ns | 1.15ns | 4.44ns | 0.00923 | 0 | 0 | 696 B |
#6069 | RunOnMethodBegin |
net472 | 1.09μs | 0.395ns | 1.48ns | 0.104 | 0 | 0 | 658 B |
Throughput/Crank Report ⚡Throughput results for AspNetCoreSimpleController comparing the following branches/commits: Cases where throughput results for the PR are worse than latest master (5% drop or greater), results are shown in red. Note that these results are based on a single point-in-time result for each branch. For full results, see one of the many, many dashboards! gantt
title Throughput Linux x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6069) (11.049M) : 0, 11048910
master (11.101M) : 0, 11101013
benchmarks/2.9.0 (11.081M) : 0, 11080577
section Automatic
This PR (6069) (7.352M) : 0, 7352342
master (7.322M) : 0, 7321945
benchmarks/2.9.0 (7.732M) : 0, 7732233
section Trace stats
master (7.648M) : 0, 7647979
section Manual
master (11.159M) : 0, 11158874
section Manual + Automatic
This PR (6069) (6.870M) : 0, 6870440
master (6.756M) : 0, 6755889
section DD_TRACE_ENABLED=0
master (10.104M) : 0, 10103630
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6069) (9.429M) : 0, 9428590
master (9.538M) : 0, 9538166
benchmarks/2.9.0 (9.798M) : 0, 9798067
section Automatic
This PR (6069) (6.390M) : 0, 6390067
master (6.560M) : 0, 6559669
section Trace stats
master (6.899M) : 0, 6898524
section Manual
master (9.530M) : 0, 9529944
section Manual + Automatic
This PR (6069) (5.905M) : 0, 5904897
master (6.111M) : 0, 6111240
section DD_TRACE_ENABLED=0
master (8.837M) : 0, 8836832
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6069) (10.124M) : 0, 10123619
master (10.017M) : 0, 10017307
benchmarks/2.9.0 (10.067M) : 0, 10067315
section Automatic
This PR (6069) (6.875M) : 0, 6875152
master (6.715M) : 0, 6715040
benchmarks/2.9.0 (7.552M) : 0, 7552193
section Trace stats
master (7.357M) : 0, 7357178
section Manual
master (9.959M) : 0, 9958707
section Manual + Automatic
This PR (6069) (6.225M) : 0, 6225031
master (6.139M) : 0, 6139159
section DD_TRACE_ENABLED=0
master (9.384M) : 0, 9383899
|
Summary of changes
Shorten
libdatadog
helper functions nameReason for change
cleaner and easier to read.
Implementation details
Use free functions instead of static methods in a static class.
Test coverage
Other details