-
Notifications
You must be signed in to change notification settings - Fork 144
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 additional tests for CI Visibility configuration behaviour #6513
base: master
Are you sure you want to change the base?
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 237009 Passed, 2095 Skipped, 18h 39m 0.08s 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 (6513) - mean (69ms) : 65, 72
. : milestone, 69,
master - mean (69ms) : 66, 72
. : milestone, 69,
section CallTarget+Inlining+NGEN
This PR (6513) - mean (985ms) : 957, 1013
. : milestone, 985,
master - mean (981ms) : 954, 1008
. : milestone, 981,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6513) - mean (107ms) : 105, 110
. : milestone, 107,
master - mean (107ms) : 105, 110
. : milestone, 107,
section CallTarget+Inlining+NGEN
This PR (6513) - mean (680ms) : 663, 697
. : milestone, 680,
master - mean (678ms) : 662, 695
. : milestone, 678,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6513) - mean (91ms) : 89, 94
. : milestone, 91,
master - mean (91ms) : 90, 93
. : milestone, 91,
section CallTarget+Inlining+NGEN
This PR (6513) - mean (635ms) : 617, 654
. : milestone, 635,
master - mean (633ms) : 616, 651
. : milestone, 633,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6513) - mean (194ms) : 188, 200
. : milestone, 194,
master - mean (195ms) : 189, 202
. : milestone, 195,
section CallTarget+Inlining+NGEN
This PR (6513) - mean (1,101ms) : 1071, 1132
. : milestone, 1101,
master - mean (1,104ms) : 1076, 1132
. : milestone, 1104,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6513) - mean (279ms) : 274, 283
. : milestone, 279,
master - mean (278ms) : 273, 282
. : milestone, 278,
section CallTarget+Inlining+NGEN
This PR (6513) - mean (876ms) : 848, 904
. : milestone, 876,
master - mean (874ms) : 847, 901
. : milestone, 874,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6513) - mean (267ms) : 262, 273
. : milestone, 267,
master - mean (268ms) : 264, 272
. : milestone, 268,
section CallTarget+Inlining+NGEN
This PR (6513) - mean (854ms) : 822, 885
. : milestone, 854,
master - mean (857ms) : 829, 885
. : milestone, 857,
|
cbe967d
to
8a5d9ae
Compare
Benchmarks Report for tracer 🐌Benchmarks for #6513 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.StartFinishSpan‑netcoreapp3.1 | 1.143 | 538.86 | 615.75 |
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 | 1.172 | 562.66 | 480.22 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 402ns | 0.511ns | 1.98ns | 0.0081 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 539ns | 0.687ns | 2.66ns | 0.00777 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 650ns | 1.43ns | 5.56ns | 0.0917 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 563ns | 0.836ns | 3.24ns | 0.00971 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 713ns | 1.11ns | 4.31ns | 0.00965 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 885ns | 1.17ns | 4.53ns | 0.104 | 0 | 0 | 658 B |
#6513 | StartFinishSpan |
net6.0 | 404ns | 0.569ns | 2.2ns | 0.00802 | 0 | 0 | 576 B |
#6513 | StartFinishSpan |
netcoreapp3.1 | 615ns | 0.775ns | 2.68ns | 0.00785 | 0 | 0 | 576 B |
#6513 | StartFinishSpan |
net472 | 713ns | 1.42ns | 5.51ns | 0.0918 | 0 | 0 | 578 B |
#6513 | StartFinishScope |
net6.0 | 480ns | 0.643ns | 2.49ns | 0.00977 | 0 | 0 | 696 B |
#6513 | StartFinishScope |
netcoreapp3.1 | 769ns | 1.59ns | 6.16ns | 0.00939 | 0 | 0 | 696 B |
#6513 | StartFinishScope |
net472 | 822ns | 1.84ns | 7.13ns | 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 | 600ns | 1.14ns | 4.4ns | 0.00973 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 896ns | 1.28ns | 4.96ns | 0.00933 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.09μs | 1.93ns | 7.46ns | 0.104 | 0 | 0 | 658 B |
#6513 | RunOnMethodBegin |
net6.0 | 646ns | 0.603ns | 2.09ns | 0.00967 | 0 | 0 | 696 B |
#6513 | RunOnMethodBegin |
netcoreapp3.1 | 958ns | 2.97ns | 11.5ns | 0.00918 | 0 | 0 | 696 B |
#6513 | RunOnMethodBegin |
net472 | 1.16μs | 1.69ns | 6.55ns | 0.104 | 0 | 0 | 658 B |
Summary of changes
Adds some more tests for CI Visibility configuration
Reason for change
In #6399 we changed how this all worked. We thought we had a regression, but it seems that we fixed a bug. This adds tests to confirm the CI Vis behaviour is as expected
Implementation details
Adds some unit tests
Test coverage
More