-
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
Improve lib-injection tagging script #5598
Conversation
This reverts commit d5dc44d.
Datadog ReportBranch report: ✅ 0 Failed, 294487 Passed, 1429 Skipped, 13h 25m 10.39s Total Time ⌛ Performance Regressions vs Default Branch (1)
|
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 (5598) - mean (75ms) : 65, 85
. : milestone, 75,
master - mean (70ms) : 66, 74
. : milestone, 70,
section CallTarget+Inlining+NGEN
This PR (5598) - mean (1,000ms) : 970, 1030
. : milestone, 1000,
master - mean (1,002ms) : 976, 1028
. : milestone, 1002,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5598) - mean (110ms) : 107, 114
. : milestone, 110,
master - mean (108ms) : 104, 111
. : milestone, 108,
section CallTarget+Inlining+NGEN
This PR (5598) - mean (729ms) : 698, 759
. : milestone, 729,
master - mean (720ms) : 683, 758
. : milestone, 720,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5598) - mean (94ms) : 91, 98
. : milestone, 94,
master - mean (92ms) : 89, 95
. : milestone, 92,
section CallTarget+Inlining+NGEN
This PR (5598) - mean (675ms) : 649, 701
. : milestone, 675,
master - mean (672ms) : 641, 703
. : milestone, 672,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5598) - mean (193ms) : 190, 195
. : milestone, 193,
master - mean (192ms) : 188, 196
. : milestone, 192,
section CallTarget+Inlining+NGEN
This PR (5598) - mean (1,111ms) : 1089, 1132
. : milestone, 1111,
master - mean (1,105ms) : 1088, 1122
. : milestone, 1105,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5598) - mean (280ms) : 274, 286
. : milestone, 280,
master - mean (276ms) : 272, 280
. : milestone, 276,
section CallTarget+Inlining+NGEN
This PR (5598) - mean (908ms) : 886, 929
. : milestone, 908,
master - mean (903ms) : 877, 929
. : milestone, 903,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5598) - mean (268ms) : 264, 271
. : milestone, 268,
master - mean (265ms) : 261, 269
. : milestone, 265,
section CallTarget+Inlining+NGEN
This PR (5598) - mean (891ms) : 865, 916
. : milestone, 891,
master - mean (881ms) : 851, 910
. : milestone, 881,
|
Benchmarks Report for tracer 🐌Benchmarks for #5598 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.155 | 531.41 | 613.98 |
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑netcoreapp3.1 | 1.119 | 763.09 | 682.00 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 460ns | 0.388ns | 1.5ns | 0.00809 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 581ns | 0.3ns | 1.12ns | 0.00786 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 656ns | 0.366ns | 1.42ns | 0.0916 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 532ns | 0.202ns | 0.781ns | 0.00989 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 763ns | 0.84ns | 3.25ns | 0.00916 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 949ns | 0.819ns | 3.07ns | 0.105 | 0 | 0 | 658 B |
#5598 | StartFinishSpan |
net6.0 | 453ns | 0.112ns | 0.433ns | 0.00811 | 0 | 0 | 576 B |
#5598 | StartFinishSpan |
netcoreapp3.1 | 566ns | 0.423ns | 1.58ns | 0.0078 | 0 | 0 | 576 B |
#5598 | StartFinishSpan |
net472 | 612ns | 0.194ns | 0.753ns | 0.0917 | 0 | 0 | 578 B |
#5598 | StartFinishScope |
net6.0 | 614ns | 0.25ns | 0.968ns | 0.00988 | 0 | 0 | 696 B |
#5598 | StartFinishScope |
netcoreapp3.1 | 682ns | 0.25ns | 0.937ns | 0.00927 | 0 | 0 | 696 B |
#5598 | StartFinishScope |
net472 | 930ns | 0.358ns | 1.39ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 654ns | 0.526ns | 2.04ns | 0.00971 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 933ns | 0.972ns | 3.77ns | 0.00892 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.09μs | 0.523ns | 2.03ns | 0.104 | 0 | 0 | 658 B |
#5598 | RunOnMethodBegin |
net6.0 | 653ns | 0.322ns | 1.2ns | 0.00984 | 0 | 0 | 696 B |
#5598 | RunOnMethodBegin |
netcoreapp3.1 | 952ns | 0.322ns | 1.25ns | 0.00945 | 0 | 0 | 696 B |
#5598 | RunOnMethodBegin |
net472 | 1.15μs | 0.57ns | 2.21ns | 0.104 | 0 | 0 | 658 B |
Summary of changes
Use a more restrictive regex when searching for tags for lib-injection
Reason for change
Suggested here - not necessary for us as we only have
vX.Y.Z-pre
tags, but preferable for other libraries, and we want to keep the scripts in sync if possibleImplementation details
Replace
grep -v '-'
(i.e. reject any tags with a-
) withgrep -E '^v[0-9]+\.[0-9]+\.[0-9]+$'
(explicit Regex)Test coverage
Re-ran all the checks from #5544 and looks good
Other details
Original implementation in