-
Notifications
You must be signed in to change notification settings - Fork 151
Bump the version of Microsoft.CodeAnalysis.CSharp and others used in our internal analyzers
#7860
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
base: master
Are you sure you want to change the base?
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.
These are all just moving from the analyzer project to the code fix project
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.
This was a public type provided in the analyzers package, so just basically vendoring the minimum amount needed here
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" PrivateAssets="all" /> | ||
| <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.8.0" PrivateAssets="all" /> | ||
| <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.8.0" PrivateAssets="all" /> |
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.
This is the important bit, removing the reference to Microsoft.CodeAnalysis.CSharp.Workspaces from this project
Execution-Time Benchmarks Report ⏱️Execution-time results for samples comparing This PR (7860) and master. ✅ No regressions detected - check the details below Full Metrics ComparisonFakeDbCommand
HttpMessageHandler
Comparison explanationExecution-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 highlighted 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). Duration chartsFakeDbCommand (.NET Framework 4.8)gantt
title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7860) - mean (76ms) : 69, 82
master - mean (75ms) : 70, 81
section Bailout
This PR (7860) - mean (80ms) : 74, 86
master - mean (79ms) : 75, 83
section CallTarget+Inlining+NGEN
This PR (7860) - mean (1,070ms) : 977, 1163
master - mean (1,060ms) : 992, 1127
FakeDbCommand (.NET Core 3.1)gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7860) - mean (118ms) : 112, 125
master - mean (117ms) : 111, 123
section Bailout
This PR (7860) - mean (120ms) : 114, 126
master - mean (120ms) : 114, 125
section CallTarget+Inlining+NGEN
This PR (7860) - mean (758ms) : 719, 797
master - mean (753ms) : 720, 786
FakeDbCommand (.NET 6)gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7860) - mean (105ms) : 97, 113
master - mean (106ms) : 100, 113
section Bailout
This PR (7860) - mean (106ms) : 101, 112
master - mean (106ms) : 100, 111
section CallTarget+Inlining+NGEN
This PR (7860) - mean (705ms) : 662, 748
master - mean (704ms) : 670, 738
FakeDbCommand (.NET 8)gantt
title Execution time (ms) FakeDbCommand (.NET 8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7860) - mean (104ms) : 96, 112
master - mean (104ms) : 97, 111
section Bailout
This PR (7860) - mean (105ms) : 100, 110
master - mean (105ms) : 99, 110
section CallTarget+Inlining+NGEN
This PR (7860) - mean (688ms) : 652, 724
master - mean (681ms) : 649, 714
HttpMessageHandler (.NET Framework 4.8)gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7860) - mean (194ms) : 189, 199
master - mean (192ms) : 188, 195
section Bailout
This PR (7860) - mean (197ms) : 195, 199
master - mean (196ms) : 192, 200
section CallTarget+Inlining+NGEN
This PR (7860) - mean (1,117ms) : 1044, 1190
master - mean (1,112ms) : 1040, 1184
HttpMessageHandler (.NET Core 3.1)gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7860) - mean (276ms) : 271, 281
master - mean (275ms) : 270, 280
section Bailout
This PR (7860) - mean (278ms) : 274, 282
master - mean (276ms) : 272, 280
section CallTarget+Inlining+NGEN
This PR (7860) - mean (911ms) : 867, 955
master - mean (901ms) : 854, 947
HttpMessageHandler (.NET 6)gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7860) - mean (271ms) : 264, 277
master - mean (270ms) : 265, 274
section Bailout
This PR (7860) - mean (270ms) : 267, 274
master - mean (268ms) : 266, 270
section CallTarget+Inlining+NGEN
This PR (7860) - mean (887ms) : 839, 935
master - mean (888ms) : 830, 946
HttpMessageHandler (.NET 8)gantt
title Execution time (ms) HttpMessageHandler (.NET 8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7860) - mean (270ms) : 264, 276
master - mean (269ms) : 264, 274
section Bailout
This PR (7860) - mean (273ms) : 265, 281
master - mean (268ms) : 265, 271
section CallTarget+Inlining+NGEN
This PR (7860) - mean (830ms) : 807, 853
master - mean (821ms) : 798, 844
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2e0d9f4 to
e3fbf99
Compare
BenchmarksBenchmarks Report for benchmark platform 🐌Benchmarks for #7860 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 ✔️ Fewer allocations 🎉
|
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces‑net472 | 3.35 KB | 3.31 KB | -46 B | -1.37% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | WriteAndFlushEnrichedTraces |
net6.0 | 935μs | 44.1ns | 159ns | 0 | 0 | 0 | 2.7 KB |
| master | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 1.03ms | 480ns | 1.86μs | 0 | 0 | 0 | 2.7 KB |
| master | WriteAndFlushEnrichedTraces |
net472 | 1.23ms | 428ns | 1.66μs | 0 | 0 | 0 | 3.35 KB |
| #7860 | WriteAndFlushEnrichedTraces |
net6.0 | 932μs | 94.5ns | 354ns | 0 | 0 | 0 | 2.7 KB |
| #7860 | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 1.01ms | 36.6ns | 137ns | 0 | 0 | 0 | 2.7 KB |
| #7860 | WriteAndFlushEnrichedTraces |
net472 | 1.2ms | 212ns | 822ns | 0 | 0 | 0 | 3.31 KB |
Benchmarks.Trace.Asm.AppSecBodyBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | AllCycleSimpleBody |
net6.0 | 1.08μs | 5.4ns | 22.9ns | 0 | 0 | 0 | 1.22 KB |
| master | AllCycleSimpleBody |
netcoreapp3.1 | 1.37μs | 7.87ns | 63.9ns | 0 | 0 | 0 | 1.2 KB |
| master | AllCycleSimpleBody |
net472 | 1.01μs | 0.432ns | 1.62ns | 0.191 | 0 | 0 | 1.23 KB |
| master | AllCycleMoreComplexBody |
net6.0 | 7.28μs | 34.1ns | 132ns | 0 | 0 | 0 | 4.72 KB |
| master | AllCycleMoreComplexBody |
netcoreapp3.1 | 9.17μs | 45.4ns | 203ns | 0 | 0 | 0 | 4.62 KB |
| master | AllCycleMoreComplexBody |
net472 | 7.68μs | 5.18ns | 20.1ns | 0.735 | 0 | 0 | 4.74 KB |
| master | ObjectExtractorSimpleBody |
net6.0 | 333ns | 1.73ns | 8.46ns | 0 | 0 | 0 | 280 B |
| master | ObjectExtractorSimpleBody |
netcoreapp3.1 | 399ns | 2ns | 8.24ns | 0 | 0 | 0 | 272 B |
| master | ObjectExtractorSimpleBody |
net472 | 299ns | 0.164ns | 0.637ns | 0.0437 | 0 | 0 | 281 B |
| master | ObjectExtractorMoreComplexBody |
net6.0 | 6.49μs | 23.2ns | 89.8ns | 0 | 0 | 0 | 3.78 KB |
| master | ObjectExtractorMoreComplexBody |
netcoreapp3.1 | 8.05μs | 41.2ns | 189ns | 0 | 0 | 0 | 3.69 KB |
| master | ObjectExtractorMoreComplexBody |
net472 | 6.76μs | 3.52ns | 13.2ns | 0.571 | 0 | 0 | 3.8 KB |
| #7860 | AllCycleSimpleBody |
net6.0 | 1.09μs | 6.17ns | 42.3ns | 0 | 0 | 0 | 1.22 KB |
| #7860 | AllCycleSimpleBody |
netcoreapp3.1 | 1.42μs | 0.704ns | 2.73ns | 0 | 0 | 0 | 1.2 KB |
| #7860 | AllCycleSimpleBody |
net472 | 1.02μs | 0.507ns | 1.96ns | 0.191 | 0 | 0 | 1.23 KB |
| #7860 | AllCycleMoreComplexBody |
net6.0 | 7.21μs | 37.2ns | 186ns | 0 | 0 | 0 | 4.72 KB |
| #7860 | AllCycleMoreComplexBody |
netcoreapp3.1 | 9.16μs | 46.5ns | 218ns | 0 | 0 | 0 | 4.62 KB |
| #7860 | AllCycleMoreComplexBody |
net472 | 7.71μs | 6.91ns | 25.9ns | 0.737 | 0 | 0 | 4.74 KB |
| #7860 | ObjectExtractorSimpleBody |
net6.0 | 338ns | 1.59ns | 6.34ns | 0 | 0 | 0 | 280 B |
| #7860 | ObjectExtractorSimpleBody |
netcoreapp3.1 | 395ns | 2.19ns | 12.8ns | 0 | 0 | 0 | 272 B |
| #7860 | ObjectExtractorSimpleBody |
net472 | 305ns | 0.0267ns | 0.0999ns | 0.0438 | 0 | 0 | 281 B |
| #7860 | ObjectExtractorMoreComplexBody |
net6.0 | 6.31μs | 32.1ns | 147ns | 0 | 0 | 0 | 3.78 KB |
| #7860 | ObjectExtractorMoreComplexBody |
netcoreapp3.1 | 7.86μs | 35.5ns | 138ns | 0 | 0 | 0 | 3.69 KB |
| #7860 | ObjectExtractorMoreComplexBody |
net472 | 6.74μs | 7.68ns | 29.7ns | 0.602 | 0 | 0 | 3.8 KB |
Benchmarks.Trace.Asm.AppSecEncoderBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | EncodeArgs |
net6.0 | 76.8μs | 240ns | 930ns | 0 | 0 | 0 | 32.4 KB |
| master | EncodeArgs |
netcoreapp3.1 | 96.7μs | 205ns | 796ns | 0 | 0 | 0 | 32.4 KB |
| master | EncodeArgs |
net472 | 110μs | 15.5ns | 60.1ns | 4.98 | 0 | 0 | 32.51 KB |
| master | EncodeLegacyArgs |
net6.0 | 149μs | 42ns | 151ns | 0 | 0 | 0 | 2.15 KB |
| master | EncodeLegacyArgs |
netcoreapp3.1 | 197μs | 128ns | 480ns | 0 | 0 | 0 | 2.14 KB |
| master | EncodeLegacyArgs |
net472 | 264μs | 142ns | 531ns | 0 | 0 | 0 | 2.16 KB |
| #7860 | EncodeArgs |
net6.0 | 76.1μs | 80.7ns | 302ns | 0 | 0 | 0 | 32.4 KB |
| #7860 | EncodeArgs |
netcoreapp3.1 | 97.7μs | 135ns | 522ns | 0 | 0 | 0 | 32.4 KB |
| #7860 | EncodeArgs |
net472 | 109μs | 11.2ns | 41.8ns | 4.9 | 0 | 0 | 32.51 KB |
| #7860 | EncodeLegacyArgs |
net6.0 | 151μs | 39.2ns | 152ns | 0 | 0 | 0 | 2.15 KB |
| #7860 | EncodeLegacyArgs |
netcoreapp3.1 | 197μs | 154ns | 554ns | 0 | 0 | 0 | 2.14 KB |
| #7860 | EncodeLegacyArgs |
net472 | 263μs | 33.1ns | 128ns | 0 | 0 | 0 | 2.16 KB |
Benchmarks.Trace.Asm.AppSecWafBenchmark - Same speed ✔️ More allocations ⚠️
More allocations ⚠️ in #7860
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark‑net6.0
5.14 KB
5.48 KB
336 B
6.53%
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark‑net6.0 | 5.14 KB | 5.48 KB | 336 B | 6.53% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | RunWafRealisticBenchmark |
net6.0 | 424μs | 856ns | 3.09μs | 0 | 0 | 0 | 5.14 KB |
| master | RunWafRealisticBenchmark |
netcoreapp3.1 | 447μs | 1.52μs | 5.26μs | 0 | 0 | 0 | 4.58 KB |
| master | RunWafRealisticBenchmark |
net472 | 495μs | 433ns | 1.56μs | 0 | 0 | 0 | 0 b |
| master | RunWafRealisticBenchmarkWithAttack |
net6.0 | 308μs | 534ns | 1.93μs | 0 | 0 | 0 | 3.17 KB |
| master | RunWafRealisticBenchmarkWithAttack |
netcoreapp3.1 | 367μs | 3.92μs | 38μs | 0 | 0 | 0 | 2.32 KB |
| master | RunWafRealisticBenchmarkWithAttack |
net472 | 368μs | 307ns | 1.11μs | 0 | 0 | 0 | 0 b |
| #7860 | RunWafRealisticBenchmark |
net6.0 | 436μs | 1.35μs | 5.05μs | 0 | 0 | 0 | 5.48 KB |
| #7860 | RunWafRealisticBenchmark |
netcoreapp3.1 | 453μs | 2.07μs | 12.1μs | 0 | 0 | 0 | 4.58 KB |
| #7860 | RunWafRealisticBenchmark |
net472 | 494μs | 626ns | 2.42μs | 0 | 0 | 0 | 0 b |
| #7860 | RunWafRealisticBenchmarkWithAttack |
net6.0 | 329μs | 1.88μs | 13.4μs | 0 | 0 | 0 | 3.17 KB |
| #7860 | RunWafRealisticBenchmarkWithAttack |
netcoreapp3.1 | 332μs | 1.84μs | 11.5μs | 0 | 0 | 0 | 2.32 KB |
| #7860 | RunWafRealisticBenchmarkWithAttack |
net472 | 370μs | 347ns | 1.25μs | 0 | 0 | 0 | 0 b |
Benchmarks.Trace.AspNetCoreBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | SendRequest |
net6.0 | 61μs | 42.6ns | 159ns | 0 | 0 | 0 | 14.52 KB |
| master | SendRequest |
netcoreapp3.1 | 71.4μs | 104ns | 362ns | 0 | 0 | 0 | 17.42 KB |
| master | SendRequest |
net472 | 0.16ns | 0.00366ns | 0.0142ns | 0 | 0 | 0 | 0 b |
| #7860 | SendRequest |
net6.0 | 61μs | 90.8ns | 314ns | 0 | 0 | 0 | 14.52 KB |
| #7860 | SendRequest |
netcoreapp3.1 | 71.5μs | 144ns | 539ns | 0 | 0 | 0 | 17.42 KB |
| #7860 | SendRequest |
net472 | 0.164ns | 0.00762ns | 0.0295ns | 0 | 0 | 0 | 0 b |
Benchmarks.Trace.CharSliceBenchmark - Same speed ✔️ Fewer allocations 🎉
Fewer allocations 🎉 in #7860
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice‑net6.0
976 B
640 B
-336 B
-34.43%
Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑net6.0
688 B
304 B
-384 B
-55.81%
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice‑net6.0 | 976 B | 640 B | -336 B | -34.43% |
| Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑net6.0 | 688 B | 304 B | -384 B | -55.81% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | OriginalCharSlice |
net6.0 | 2.01ms | 445ns | 1.6μs | 0 | 0 | 0 | 640.3 KB |
| master | OriginalCharSlice |
netcoreapp3.1 | 3.97ms | 1.07μs | 3.99μs | 0 | 0 | 0 | 640.1 KB |
| master | OriginalCharSlice |
net472 | 2.61ms | 816ns | 3.16μs | 0 | 0 | 0 | 647.17 KB |
| master | OptimizedCharSlice |
net6.0 | 1.41ms | 688ns | 2.67μs | 0 | 0 | 0 | 976 B |
| master | OptimizedCharSlice |
netcoreapp3.1 | 2.78ms | 1.29μs | 4.82μs | 0 | 0 | 0 | 104 B |
| master | OptimizedCharSlice |
net472 | 1.94ms | 436ns | 1.63μs | 0 | 0 | 0 | 0 b |
| master | OptimizedCharSliceWithPool |
net6.0 | 1.01ms | 814ns | 3.15μs | 0 | 0 | 0 | 688 B |
| master | OptimizedCharSliceWithPool |
netcoreapp3.1 | 1.86ms | 1.8μs | 6.72μs | 0 | 0 | 0 | 104 B |
| master | OptimizedCharSliceWithPool |
net472 | 1.27ms | 2.43μs | 9.4μs | 0 | 0 | 0 | 0 b |
| #7860 | OriginalCharSlice |
net6.0 | 2.01ms | 2.86μs | 11.1μs | 0 | 0 | 0 | 640.3 KB |
| #7860 | OriginalCharSlice |
netcoreapp3.1 | 3.86ms | 2μs | 7.76μs | 0 | 0 | 0 | 640.1 KB |
| #7860 | OriginalCharSlice |
net472 | 2.66ms | 749ns | 2.8μs | 0 | 0 | 0 | 647.17 KB |
| #7860 | OptimizedCharSlice |
net6.0 | 1.43ms | 532ns | 1.99μs | 0 | 0 | 0 | 640 B |
| #7860 | OptimizedCharSlice |
netcoreapp3.1 | 2.77ms | 466ns | 1.74μs | 0 | 0 | 0 | 104 B |
| #7860 | OptimizedCharSlice |
net472 | 1.9ms | 475ns | 1.78μs | 0 | 0 | 0 | 0 b |
| #7860 | OptimizedCharSliceWithPool |
net6.0 | 1.06ms | 352ns | 1.32μs | 0 | 0 | 0 | 304 B |
| #7860 | OptimizedCharSliceWithPool |
netcoreapp3.1 | 1.86ms | 2.19μs | 8.49μs | 0 | 0 | 0 | 104 B |
| #7860 | OptimizedCharSliceWithPool |
net472 | 1.15ms | 544ns | 2.11μs | 0 | 0 | 0 | 0 b |
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark - Faster 🎉 More allocations ⚠️
Faster 🎉 in #7860
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑netcoreapp3.1
1.166
768,220.09
658,701.34
More allocations ⚠️ in #7860
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑net6.0
41.63 KB
41.98 KB
350 B
0.84%
Fewer allocations 🎉 in #7860
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑netcoreapp3.1
42.36 KB
41.94 KB
-413 B
-0.98%
| Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑netcoreapp3.1 | 1.166 | 768,220.09 | 658,701.34 |
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑net6.0 | 41.63 KB | 41.98 KB | 350 B | 0.84% |
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑netcoreapp3.1 | 42.36 KB | 41.94 KB | -413 B | -0.98% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | WriteAndFlushEnrichedTraces |
net6.0 | 709μs | 3.94μs | 24.9μs | 0 | 0 | 0 | 41.63 KB |
| master | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 770μs | 2.93μs | 13.4μs | 0 | 0 | 0 | 42.36 KB |
| master | WriteAndFlushEnrichedTraces |
net472 | 861μs | 2.69μs | 10μs | 7.81 | 0 | 0 | 56.03 KB |
| #7860 | WriteAndFlushEnrichedTraces |
net6.0 | 681μs | 3.58μs | 18.6μs | 0 | 0 | 0 | 41.98 KB |
| #7860 | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 656μs | 1.44μs | 12.3μs | 0 | 0 | 0 | 41.94 KB |
| #7860 | WriteAndFlushEnrichedTraces |
net472 | 921μs | 2.57μs | 9.94μs | 4.46 | 0 | 0 | 56.08 KB |
Benchmarks.Trace.DbCommandBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | ExecuteNonQuery |
net6.0 | 2μs | 10.5ns | 52.3ns | 0 | 0 | 0 | 1.02 KB |
| master | ExecuteNonQuery |
netcoreapp3.1 | 2.59μs | 10.7ns | 41.3ns | 0 | 0 | 0 | 1.02 KB |
| master | ExecuteNonQuery |
net472 | 2.73μs | 1.01ns | 3.77ns | 0.151 | 0 | 0 | 987 B |
| #7860 | ExecuteNonQuery |
net6.0 | 1.93μs | 6.72ns | 26ns | 0 | 0 | 0 | 1.02 KB |
| #7860 | ExecuteNonQuery |
netcoreapp3.1 | 2.57μs | 7.25ns | 27.1ns | 0 | 0 | 0 | 1.02 KB |
| #7860 | ExecuteNonQuery |
net472 | 2.75μs | 3.18ns | 12.3ns | 0.151 | 0 | 0 | 987 B |
Benchmarks.Trace.ElasticsearchBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | CallElasticsearch |
net6.0 | 1.68μs | 9.06ns | 48.8ns | 0 | 0 | 0 | 1.03 KB |
| master | CallElasticsearch |
netcoreapp3.1 | 2.33μs | 9.54ns | 36.9ns | 0 | 0 | 0 | 1.03 KB |
| master | CallElasticsearch |
net472 | 3.55μs | 5.4ns | 20.9ns | 0.16 | 0 | 0 | 1.04 KB |
| master | CallElasticsearchAsync |
net6.0 | 1.78μs | 8.8ns | 37.3ns | 0 | 0 | 0 | 1.01 KB |
| master | CallElasticsearchAsync |
netcoreapp3.1 | 2.46μs | 11.4ns | 45.5ns | 0 | 0 | 0 | 1.08 KB |
| master | CallElasticsearchAsync |
net472 | 3.83μs | 1.42ns | 4.91ns | 0.174 | 0 | 0 | 1.1 KB |
| #7860 | CallElasticsearch |
net6.0 | 1.83μs | 4.71ns | 18.2ns | 0 | 0 | 0 | 1.03 KB |
| #7860 | CallElasticsearch |
netcoreapp3.1 | 2.31μs | 8.29ns | 32.1ns | 0 | 0 | 0 | 1.03 KB |
| #7860 | CallElasticsearch |
net472 | 3.67μs | 5.92ns | 22.9ns | 0.149 | 0 | 0 | 1.04 KB |
| #7860 | CallElasticsearchAsync |
net6.0 | 1.79μs | 8.47ns | 31.7ns | 0 | 0 | 0 | 1.01 KB |
| #7860 | CallElasticsearchAsync |
netcoreapp3.1 | 2.45μs | 11.9ns | 51.7ns | 0 | 0 | 0 | 1.08 KB |
| #7860 | CallElasticsearchAsync |
net472 | 3.77μs | 1.65ns | 6.39ns | 0.17 | 0 | 0 | 1.1 KB |
Benchmarks.Trace.GraphQLBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | ExecuteAsync |
net6.0 | 1.89μs | 6.44ns | 24.9ns | 0 | 0 | 0 | 952 B |
| master | ExecuteAsync |
netcoreapp3.1 | 2.45μs | 9.74ns | 37.7ns | 0 | 0 | 0 | 952 B |
| master | ExecuteAsync |
net472 | 2.61μs | 3.17ns | 12.3ns | 0.142 | 0 | 0 | 915 B |
| #7860 | ExecuteAsync |
net6.0 | 1.92μs | 4.49ns | 16.8ns | 0 | 0 | 0 | 952 B |
| #7860 | ExecuteAsync |
netcoreapp3.1 | 2.33μs | 10.8ns | 41.7ns | 0 | 0 | 0 | 952 B |
| #7860 | ExecuteAsync |
net472 | 2.65μs | 1.72ns | 6.65ns | 0.145 | 0 | 0 | 915 B |
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | SendAsync |
net6.0 | 6.93μs | 17.6ns | 65.9ns | 0 | 0 | 0 | 2.36 KB |
| master | SendAsync |
netcoreapp3.1 | 8.36μs | 23.5ns | 90.9ns | 0 | 0 | 0 | 2.9 KB |
| master | SendAsync |
net472 | 12.4μs | 8.43ns | 31.5ns | 0.5 | 0 | 0 | 3.18 KB |
| #7860 | SendAsync |
net6.0 | 7.05μs | 3.85ns | 14.9ns | 0 | 0 | 0 | 2.36 KB |
| #7860 | SendAsync |
netcoreapp3.1 | 8.92μs | 24.1ns | 93.5ns | 0 | 0 | 0 | 2.9 KB |
| #7860 | SendAsync |
net472 | 12μs | 8.79ns | 32.9ns | 0.481 | 0 | 0 | 3.18 KB |
Benchmarks.Trace.Iast.StringAspectsBenchmark - Same speed ✔️ More allocations ⚠️
More allocations ⚠️ in #7860
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑netcoreapp3.1
256.53 KB
276.16 KB
19.63 KB
7.65%
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑netcoreapp3.1
43.42 KB
44.04 KB
624 B
1.44%
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net6.0
43.64 KB
44.14 KB
496 B
1.14%
Fewer allocations 🎉 in #7860
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0
275.57 KB
273.31 KB
-2.26 KB
-0.82%
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net472
73.73 KB
57.34 KB
-16.38 KB
-22.22%
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net472
417.82 KB
278.53 KB
-139.29 KB
-33.34%
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑netcoreapp3.1 | 256.53 KB | 276.16 KB | 19.63 KB | 7.65% |
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑netcoreapp3.1 | 43.42 KB | 44.04 KB | 624 B | 1.44% |
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net6.0 | 43.64 KB | 44.14 KB | 496 B | 1.14% |
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0 | 275.57 KB | 273.31 KB | -2.26 KB | -0.82% |
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net472 | 73.73 KB | 57.34 KB | -16.38 KB | -22.22% |
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net472 | 417.82 KB | 278.53 KB | -139.29 KB | -33.34% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StringConcatBenchmark |
net6.0 | 44.6μs | 144ns | 841ns | 0 | 0 | 0 | 43.64 KB |
| master | StringConcatBenchmark |
netcoreapp3.1 | 50.5μs | 295ns | 2.49μs | 0 | 0 | 0 | 43.42 KB |
| master | StringConcatBenchmark |
net472 | 57.6μs | 130ns | 504ns | 0 | 0 | 0 | 73.73 KB |
| master | StringConcatAspectBenchmark |
net6.0 | 494μs | 1.78μs | 6.4μs | 0 | 0 | 0 | 275.57 KB |
| master | StringConcatAspectBenchmark |
netcoreapp3.1 | 512μs | 2.35μs | 8.46μs | 0 | 0 | 0 | 256.53 KB |
| master | StringConcatAspectBenchmark |
net472 | 407μs | 2.17μs | 15.8μs | 0 | 0 | 0 | 417.82 KB |
| #7860 | StringConcatBenchmark |
net6.0 | 45.2μs | 263ns | 2μs | 0 | 0 | 0 | 44.14 KB |
| #7860 | StringConcatBenchmark |
netcoreapp3.1 | 49.3μs | 230ns | 830ns | 0 | 0 | 0 | 44.04 KB |
| #7860 | StringConcatBenchmark |
net472 | 57.4μs | 217ns | 840ns | 0 | 0 | 0 | 57.34 KB |
| #7860 | StringConcatAspectBenchmark |
net6.0 | 457μs | 1.94μs | 6.72μs | 0 | 0 | 0 | 273.31 KB |
| #7860 | StringConcatAspectBenchmark |
netcoreapp3.1 | 551μs | 1.5μs | 5.4μs | 0 | 0 | 0 | 276.16 KB |
| #7860 | StringConcatAspectBenchmark |
net472 | 413μs | 2.2μs | 12.2μs | 0 | 0 | 0 | 278.53 KB |
Benchmarks.Trace.ILoggerBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | EnrichedLog |
net6.0 | 2.73μs | 1.19ns | 4.61ns | 0 | 0 | 0 | 1.7 KB |
| master | EnrichedLog |
netcoreapp3.1 | 3.63μs | 15.6ns | 60.3ns | 0 | 0 | 0 | 1.7 KB |
| master | EnrichedLog |
net472 | 3.72μs | 2.28ns | 8.82ns | 0.26 | 0 | 0 | 1.64 KB |
| #7860 | EnrichedLog |
net6.0 | 2.77μs | 12.8ns | 49.7ns | 0 | 0 | 0 | 1.7 KB |
| #7860 | EnrichedLog |
netcoreapp3.1 | 3.72μs | 18.6ns | 80.9ns | 0 | 0 | 0 | 1.7 KB |
| #7860 | EnrichedLog |
net472 | 3.8μs | 2.98ns | 11.5ns | 0.247 | 0 | 0 | 1.64 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 | 124μs | 80.4ns | 290ns | 0 | 0 | 0 | 4.31 KB |
| master | EnrichedLog |
netcoreapp3.1 | 129μs | 174ns | 628ns | 0 | 0 | 0 | 4.31 KB |
| master | EnrichedLog |
net472 | 168μs | 127ns | 494ns | 0 | 0 | 0 | 4.52 KB |
| #7860 | EnrichedLog |
net6.0 | 124μs | 80.8ns | 313ns | 0 | 0 | 0 | 4.31 KB |
| #7860 | EnrichedLog |
netcoreapp3.1 | 131μs | 434ns | 1.56μs | 0 | 0 | 0 | 4.31 KB |
| #7860 | EnrichedLog |
net472 | 168μs | 47.7ns | 165ns | 0 | 0 | 0 | 4.52 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 | 4.8μs | 23.5ns | 91.1ns | 0 | 0 | 0 | 2.26 KB |
| master | EnrichedLog |
netcoreapp3.1 | 6.79μs | 17.7ns | 68.6ns | 0 | 0 | 0 | 2.26 KB |
| master | EnrichedLog |
net472 | 7.53μs | 8.52ns | 33ns | 0.302 | 0 | 0 | 2.08 KB |
| #7860 | EnrichedLog |
net6.0 | 5.16μs | 5.24ns | 20.3ns | 0 | 0 | 0 | 2.26 KB |
| #7860 | EnrichedLog |
netcoreapp3.1 | 6.97μs | 4.15ns | 15.5ns | 0 | 0 | 0 | 2.26 KB |
| #7860 | EnrichedLog |
net472 | 7.6μs | 7.9ns | 30.6ns | 0.302 | 0 | 0 | 2.08 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.97μs | 1.52ns | 5.89ns | 0 | 0 | 0 | 1.2 KB |
| master | SendReceive |
netcoreapp3.1 | 2.49μs | 12.1ns | 48.5ns | 0 | 0 | 0 | 1.2 KB |
| master | SendReceive |
net472 | 3.24μs | 5.93ns | 23ns | 0.179 | 0 | 0 | 1.2 KB |
| #7860 | SendReceive |
net6.0 | 1.99μs | 0.608ns | 2.28ns | 0 | 0 | 0 | 1.2 KB |
| #7860 | SendReceive |
netcoreapp3.1 | 2.53μs | 12.6ns | 53.6ns | 0 | 0 | 0 | 1.2 KB |
| #7860 | SendReceive |
net472 | 3.11μs | 2.48ns | 9.28ns | 0.187 | 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 | 4.35μs | 1.22ns | 4.56ns | 0 | 0 | 0 | 1.58 KB |
| master | EnrichedLog |
netcoreapp3.1 | 5.98μs | 20.3ns | 78.7ns | 0 | 0 | 0 | 1.63 KB |
| master | EnrichedLog |
net472 | 6.46μs | 5.54ns | 20.7ns | 0.321 | 0 | 0 | 2.03 KB |
| #7860 | EnrichedLog |
net6.0 | 4.52μs | 12.6ns | 43.5ns | 0 | 0 | 0 | 1.58 KB |
| #7860 | EnrichedLog |
netcoreapp3.1 | 5.78μs | 13.4ns | 50.1ns | 0 | 0 | 0 | 1.63 KB |
| #7860 | EnrichedLog |
net472 | 6.46μs | 7.22ns | 28ns | 0.321 | 0 | 0 | 2.03 KB |
Benchmarks.Trace.SpanBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StartFinishSpan |
net6.0 | 780ns | 0.208ns | 0.804ns | 0 | 0 | 0 | 576 B |
| master | StartFinishSpan |
netcoreapp3.1 | 971ns | 5.33ns | 30.6ns | 0 | 0 | 0 | 576 B |
| master | StartFinishSpan |
net472 | 909ns | 0.0952ns | 0.356ns | 0.091 | 0 | 0 | 578 B |
| master | StartFinishScope |
net6.0 | 924ns | 4.81ns | 24.5ns | 0 | 0 | 0 | 696 B |
| master | StartFinishScope |
netcoreapp3.1 | 1.15μs | 5.92ns | 26.5ns | 0 | 0 | 0 | 696 B |
| master | StartFinishScope |
net472 | 1.1μs | 0.311ns | 1.21ns | 0.0995 | 0 | 0 | 658 B |
| #7860 | StartFinishSpan |
net6.0 | 790ns | 0.161ns | 0.625ns | 0 | 0 | 0 | 576 B |
| #7860 | StartFinishSpan |
netcoreapp3.1 | 950ns | 4.94ns | 25.2ns | 0 | 0 | 0 | 576 B |
| #7860 | StartFinishSpan |
net472 | 940ns | 0.118ns | 0.427ns | 0.087 | 0 | 0 | 578 B |
| #7860 | StartFinishScope |
net6.0 | 948ns | 0.212ns | 0.822ns | 0 | 0 | 0 | 696 B |
| #7860 | StartFinishScope |
netcoreapp3.1 | 1.15μs | 6.28ns | 35ns | 0 | 0 | 0 | 696 B |
| #7860 | StartFinishScope |
net472 | 1.13μs | 0.813ns | 3.04ns | 0.101 | 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 | 1.08μs | 5.26ns | 21.7ns | 0 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
netcoreapp3.1 | 1.4μs | 6.19ns | 22.3ns | 0 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
net472 | 1.45μs | 1.54ns | 5.95ns | 0.102 | 0 | 0 | 658 B |
| #7860 | RunOnMethodBegin |
net6.0 | 1.11μs | 1.29ns | 4.99ns | 0 | 0 | 0 | 696 B |
| #7860 | RunOnMethodBegin |
netcoreapp3.1 | 1.44μs | 6.26ns | 24.2ns | 0 | 0 | 0 | 696 B |
| #7860 | RunOnMethodBegin |
net472 | 1.46μs | 0.963ns | 3.73ns | 0.102 | 0 | 0 | 658 B |
Summary of changes
Microsoft.CodeAnalysis.CSharp,Microsoft.CodeAnalysis.CSharp.Workspaces, andMicrosoft.CodeAnalysis.Analyzersto latestReason for change
We should update these dependencies as they're old. Unfortunately, doing so hits this build error:
tl;dr; codefixes need to be in a separate assembly to analyzers and source generators 🙄
Implementation details
Test coverage
As long as the unit tests pass I think we're good
Other details