-
Notifications
You must be signed in to change notification settings - Fork 145
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
Add a Github action that ensures you correctly persist any changes to the samples #6536
Conversation
b68df89
to
5400260
Compare
Datadog ReportBranch report: ✅ 0 Failed, 240156 Passed, 1976 Skipped, 18h 39m 38.43s Total Time |
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 (6536) - mean (69ms) : 65, 73
. : milestone, 69,
master - mean (68ms) : 66, 71
. : milestone, 68,
section CallTarget+Inlining+NGEN
This PR (6536) - mean (977ms) : 944, 1010
. : milestone, 977,
master - mean (979ms) : 948, 1010
. : milestone, 979,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6536) - mean (107ms) : 105, 109
. : milestone, 107,
master - mean (107ms) : 105, 109
. : milestone, 107,
section CallTarget+Inlining+NGEN
This PR (6536) - mean (673ms) : 661, 685
. : milestone, 673,
master - mean (678ms) : 664, 693
. : milestone, 678,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6536) - mean (91ms) : 88, 93
. : milestone, 91,
master - mean (91ms) : 89, 93
. : milestone, 91,
section CallTarget+Inlining+NGEN
This PR (6536) - mean (630ms) : 612, 648
. : milestone, 630,
master - mean (635ms) : 620, 649
. : milestone, 635,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6536) - mean (194ms) : 186, 203
. : milestone, 194,
master - mean (194ms) : 190, 198
. : milestone, 194,
section CallTarget+Inlining+NGEN
This PR (6536) - mean (1,101ms) : 1076, 1127
. : milestone, 1101,
master - mean (1,103ms) : 1066, 1140
. : milestone, 1103,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6536) - mean (279ms) : 274, 284
. : milestone, 279,
master - mean (277ms) : 274, 281
. : milestone, 277,
section CallTarget+Inlining+NGEN
This PR (6536) - mean (869ms) : 844, 893
. : milestone, 869,
master - mean (870ms) : 843, 897
. : milestone, 870,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6536) - mean (267ms) : 263, 270
. : milestone, 267,
master - mean (267ms) : 263, 271
. : milestone, 267,
section CallTarget+Inlining+NGEN
This PR (6536) - mean (846ms) : 819, 874
. : milestone, 846,
master - mean (852ms) : 825, 878
. : milestone, 852,
|
Benchmarks Report for tracer 🐌Benchmarks for #6536 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 - Faster 🎉 Same allocations ✔️
|
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 | 1.164 | 569.09 | 488.71 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 452ns | 0.246ns | 0.951ns | 0.00818 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 615ns | 1.03ns | 3.98ns | 0.00804 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 672ns | 0.322ns | 1.25ns | 0.0916 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 569ns | 0.439ns | 1.7ns | 0.0097 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 720ns | 0.908ns | 3.52ns | 0.00955 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 943ns | 0.769ns | 2.88ns | 0.104 | 0 | 0 | 658 B |
#6536 | StartFinishSpan |
net6.0 | 467ns | 0.306ns | 1.19ns | 0.00802 | 0 | 0 | 576 B |
#6536 | StartFinishSpan |
netcoreapp3.1 | 602ns | 0.981ns | 3.8ns | 0.00772 | 0 | 0 | 576 B |
#6536 | StartFinishSpan |
net472 | 695ns | 0.734ns | 2.84ns | 0.0917 | 0 | 0 | 578 B |
#6536 | StartFinishScope |
net6.0 | 489ns | 0.347ns | 1.34ns | 0.00972 | 0 | 0 | 696 B |
#6536 | StartFinishScope |
netcoreapp3.1 | 726ns | 0.32ns | 1.24ns | 0.00935 | 0 | 0 | 696 B |
#6536 | StartFinishScope |
net472 | 911ns | 0.492ns | 1.9ns | 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 | 659ns | 0.43ns | 1.67ns | 0.00961 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 934ns | 0.414ns | 1.43ns | 0.00906 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.04μs | 0.671ns | 2.42ns | 0.104 | 0 | 0 | 658 B |
#6536 | RunOnMethodBegin |
net6.0 | 653ns | 0.461ns | 1.78ns | 0.00979 | 0 | 0 | 696 B |
#6536 | RunOnMethodBegin |
netcoreapp3.1 | 896ns | 0.451ns | 1.75ns | 0.00942 | 0 | 0 | 696 B |
#6536 | RunOnMethodBegin |
net472 | 1.15μs | 0.484ns | 1.87ns | 0.105 | 0 | 0 | 658 B |
Summary of changes
Adds a GitHub action that ensures you run
RegenerateSolutions
after adding a new sample to the main solutionReason for change
In #6498, we now have a separate samples solution that we use to build the samples in a separate stage. However, that means when you add a new sample to
Datadog.Trace.sln
you should run theRegenerateSolutions
target, otherwise you could get unexpected failures. This GitHub action ensures that you do this.Implementation details
Added a github action check, same as we have for other similar issues
Test coverage
Can't test it until it's merged. Once I'm sure it's working correctly, will mark it as required