-
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
If a lot of snapshots have changed, we should check them all #5563
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.
100 is totally the right number nods nods
Datadog ReportBranch report: ✅ 0 Failed, 336959 Passed, 1565 Skipped, 13h 36m 8.86s Total Time New Flaky Tests (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 (5563) - mean (73ms) : 66, 81
. : milestone, 73,
master - mean (71ms) : 66, 76
. : milestone, 71,
section CallTarget+Inlining+NGEN
This PR (5563) - mean (997ms) : 967, 1028
. : milestone, 997,
master - mean (993ms) : 968, 1017
. : milestone, 993,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5563) - mean (111ms) : 108, 114
. : milestone, 111,
master - mean (110ms) : 107, 112
. : milestone, 110,
section CallTarget+Inlining+NGEN
This PR (5563) - mean (710ms) : 692, 729
. : milestone, 710,
master - mean (700ms) : 676, 724
. : milestone, 700,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5563) - mean (96ms) : 93, 99
. : milestone, 96,
master - mean (94ms) : 90, 99
. : milestone, 94,
section CallTarget+Inlining+NGEN
This PR (5563) - mean (655ms) : 635, 674
. : milestone, 655,
master - mean (655ms) : 634, 677
. : milestone, 655,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5563) - mean (192ms) : 188, 196
. : milestone, 192,
master - mean (191ms) : 187, 196
. : milestone, 191,
section CallTarget+Inlining+NGEN
This PR (5563) - mean (1,116ms) : 1090, 1143
. : milestone, 1116,
master - mean (1,112ms) : 1090, 1134
. : milestone, 1112,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5563) - mean (274ms) : 270, 277
. : milestone, 274,
master - mean (276ms) : 272, 280
. : milestone, 276,
section CallTarget+Inlining+NGEN
This PR (5563) - mean (913ms) : 896, 931
. : milestone, 913,
master - mean (912ms) : 898, 927
. : milestone, 912,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5563) - mean (264ms) : 260, 269
. : milestone, 264,
master - mean (264ms) : 260, 267
. : milestone, 264,
section CallTarget+Inlining+NGEN
This PR (5563) - mean (905ms) : 886, 923
. : milestone, 905,
master - mean (896ms) : 877, 915
. : milestone, 896,
|
Benchmarks Report for tracer 🐌Benchmarks for #5563 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 - Faster 🎉 Same allocations ✔️
|
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.ILoggerBenchmark.EnrichedLog‑net6.0 | 1.122 | 1,612.54 | 1,436.65 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 1.61μs | 0.332ns | 1.29ns | 0.0234 | 0 | 0 | 1.7 KB |
master | EnrichedLog |
netcoreapp3.1 | 2.16μs | 1.69ns | 6.32ns | 0.0227 | 0 | 0 | 1.7 KB |
master | EnrichedLog |
net472 | 2.73μs | 2.74ns | 10.3ns | 0.257 | 0 | 0 | 1.62 KB |
#5563 | EnrichedLog |
net6.0 | 1.44μs | 0.754ns | 2.92ns | 0.0237 | 0 | 0 | 1.7 KB |
#5563 | EnrichedLog |
netcoreapp3.1 | 2.23μs | 1.02ns | 3.8ns | 0.0226 | 0 | 0 | 1.7 KB |
#5563 | EnrichedLog |
net472 | 2.67μs | 2.39ns | 9.25ns | 0.257 | 0 | 0 | 1.62 KB |
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 113μs | 193ns | 746ns | 0.0565 | 0 | 0 | 4.28 KB |
master | EnrichedLog |
netcoreapp3.1 | 121μs | 202ns | 784ns | 0 | 0 | 0 | 4.28 KB |
master | EnrichedLog |
net472 | 151μs | 174ns | 672ns | 0.676 | 0.225 | 0 | 4.46 KB |
#5563 | EnrichedLog |
net6.0 | 113μs | 231ns | 893ns | 0.0561 | 0 | 0 | 4.28 KB |
#5563 | EnrichedLog |
netcoreapp3.1 | 117μs | 110ns | 425ns | 0.0581 | 0 | 0 | 4.28 KB |
#5563 | EnrichedLog |
net472 | 148μs | 389ns | 1.51μs | 0.676 | 0.225 | 0 | 4.46 KB |
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 3.09μs | 0.976ns | 3.65ns | 0.0307 | 0 | 0 | 2.25 KB |
master | EnrichedLog |
netcoreapp3.1 | 4.15μs | 1.95ns | 7.56ns | 0.029 | 0 | 0 | 2.25 KB |
master | EnrichedLog |
net472 | 4.69μs | 1.52ns | 5.7ns | 0.327 | 0 | 0 | 2.07 KB |
#5563 | EnrichedLog |
net6.0 | 3.06μs | 0.75ns | 2.81ns | 0.0307 | 0 | 0 | 2.25 KB |
#5563 | EnrichedLog |
netcoreapp3.1 | 4.18μs | 2.49ns | 9.31ns | 0.0313 | 0 | 0 | 2.25 KB |
#5563 | EnrichedLog |
net472 | 4.89μs | 1.49ns | 5.75ns | 0.328 | 0 | 0 | 2.07 KB |
Benchmarks.Trace.RedisBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | SendReceive |
net6.0 | 1.33μs | 1.12ns | 4.33ns | 0.0167 | 0 | 0 | 1.2 KB |
master | SendReceive |
netcoreapp3.1 | 1.85μs | 1.27ns | 4.93ns | 0.0158 | 0 | 0 | 1.2 KB |
master | SendReceive |
net472 | 2.24μs | 0.574ns | 2.07ns | 0.191 | 0.00113 | 0 | 1.2 KB |
#5563 | SendReceive |
net6.0 | 1.37μs | 0.814ns | 3.15ns | 0.0171 | 0 | 0 | 1.2 KB |
#5563 | SendReceive |
netcoreapp3.1 | 1.79μs | 1.91ns | 7.4ns | 0.0162 | 0 | 0 | 1.2 KB |
#5563 | SendReceive |
net472 | 2.31μs | 1.05ns | 3.92ns | 0.191 | 0 | 0 | 1.2 KB |
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 2.76μs | 1.13ns | 4.08ns | 0.0221 | 0 | 0 | 1.6 KB |
master | EnrichedLog |
netcoreapp3.1 | 3.93μs | 1.23ns | 4.62ns | 0.0217 | 0 | 0 | 1.65 KB |
master | EnrichedLog |
net472 | 4.55μs | 3.5ns | 13.6ns | 0.322 | 0 | 0 | 2.04 KB |
#5563 | EnrichedLog |
net6.0 | 2.73μs | 1.05ns | 4.05ns | 0.0218 | 0 | 0 | 1.6 KB |
#5563 | EnrichedLog |
netcoreapp3.1 | 3.94μs | 3.19ns | 11.9ns | 0.0217 | 0 | 0 | 1.65 KB |
#5563 | EnrichedLog |
net472 | 4.3μs | 4.72ns | 18.3ns | 0.323 | 0 | 0 | 2.04 KB |
Benchmarks.Trace.SpanBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #5563
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0
1.154
631.13
546.95
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 | 1.154 | 631.13 | 546.95 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 464ns | 0.268ns | 1ns | 0.00815 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 673ns | 0.521ns | 2.02ns | 0.00782 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 779ns | 0.48ns | 1.86ns | 0.0917 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 631ns | 0.953ns | 3.69ns | 0.00985 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 904ns | 1.81ns | 6.76ns | 0.00963 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 1.02μs | 0.347ns | 1.25ns | 0.104 | 0 | 0 | 658 B |
#5563 | StartFinishSpan |
net6.0 | 496ns | 0.219ns | 0.791ns | 0.00793 | 0 | 0 | 576 B |
#5563 | StartFinishSpan |
netcoreapp3.1 | 680ns | 0.371ns | 1.39ns | 0.00769 | 0 | 0 | 576 B |
#5563 | StartFinishSpan |
net472 | 794ns | 0.384ns | 1.49ns | 0.0915 | 0 | 0 | 578 B |
#5563 | StartFinishScope |
net6.0 | 547ns | 0.181ns | 0.678ns | 0.00966 | 0 | 0 | 696 B |
#5563 | StartFinishScope |
netcoreapp3.1 | 859ns | 0.414ns | 1.6ns | 0.00945 | 0 | 0 | 696 B |
#5563 | StartFinishScope |
net472 | 1.01μs | 1.11ns | 4.3ns | 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 | 601ns | 0.483ns | 1.87ns | 0.00983 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 990ns | 1.37ns | 5.29ns | 0.00939 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.11μs | 0.671ns | 2.6ns | 0.104 | 0 | 0 | 658 B |
#5563 | RunOnMethodBegin |
net6.0 | 645ns | 0.242ns | 0.937ns | 0.0097 | 0 | 0 | 696 B |
#5563 | RunOnMethodBegin |
netcoreapp3.1 | 908ns | 0.616ns | 2.3ns | 0.00923 | 0 | 0 | 696 B |
#5563 | RunOnMethodBegin |
net472 | 1.21μs | 0.846ns | 3.28ns | 0.104 | 0 | 0 | 658 B |
Throughput/Crank Report:zap: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 (5563) (11.881M) : 0, 11881446
master (11.862M) : 0, 11862130
benchmarks/2.9.0 (11.817M) : 0, 11816893
section Automatic
This PR (5563) (8.121M) : 0, 8121168
master (8.015M) : 0, 8014959
benchmarks/2.9.0 (8.480M) : 0, 8480079
section Trace stats
master (8.328M) : 0, 8328315
section Manual
This PR (5563) (10.393M) : 0, 10393265
master (10.258M) : 0, 10258408
section Manual + Automatic
This PR (5563) (7.594M) : 0, 7593927
master (7.540M) : 0, 7540293
section Version Conflict
master (6.769M) : 0, 6769041
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5563) (9.445M) : 0, 9444694
master (9.688M) : 0, 9688323
benchmarks/2.9.0 (9.598M) : 0, 9597540
section Automatic
This PR (5563) (6.638M) : 0, 6638260
master (6.554M) : 0, 6554363
section Trace stats
master (6.850M) : 0, 6849767
section Manual
This PR (5563) (8.145M) : 0, 8144678
master (8.245M) : 0, 8245403
section Manual + Automatic
This PR (5563) (6.066M) : 0, 6065729
master (6.190M) : 0, 6190348
section Version Conflict
master (5.680M) : 0, 5679678
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5563) (9.856M) : 0, 9855602
master (9.781M) : 0, 9781004
benchmarks/2.9.0 (10.041M) : 0, 10040980
section Automatic
This PR (5563) (7.114M) : 0, 7113852
master (6.964M) : 0, 6964106
benchmarks/2.9.0 (7.137M) : 0, 7137430
section Trace stats
master (7.347M) : 0, 7347028
section Manual
This PR (5563) (8.799M) : 0, 8798889
master (8.809M) : 0, 8809283
section Manual + Automatic
This PR (5563) (6.826M) : 0, 6826187
master (6.754M) : 0, 6754006
section Version Conflict
master (6.038M) : 0, 6038242
|
Summary of changes
Reason for change
We've had several cases recently (e.g. #5545) where a PR merge has broken master because some tests are not run on the PR. This improves the "risky" detection to try to prevent master breaking so much
Implementation details
We already detect when integration hook points are added or changed, but that was only looking at calltarget previously. This adds support for checking for aspects too (callsite).
Additionally, if there are a lot of snapshot changes (> 100) we also trigger checking other TFMs, as there's a high probability the non-tested TFMs will be impacted
Test coverage
I haven't tested it, easier to observe in the wild and make sure it's working
Other details