-
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
Missing generated aspects #5225
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 311463 Passed, 1591 Skipped, 40m 48.08s Wall Time |
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.
LGTM! Sorry for the oversight
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 (5225) - mean (73ms) : 67, 80
. : milestone, 73,
master - mean (73ms) : 64, 82
. : milestone, 73,
section CallTarget+Inlining+NGEN
This PR (5225) - mean (989ms) : 966, 1011
. : milestone, 989,
master - mean (980ms) : 961, 999
. : milestone, 980,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5225) - mean (111ms) : 108, 115
. : milestone, 111,
master - mean (110ms) : 106, 113
. : milestone, 110,
section CallTarget+Inlining+NGEN
This PR (5225) - mean (714ms) : 690, 737
. : milestone, 714,
master - mean (708ms) : 687, 728
. : milestone, 708,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5225) - mean (94ms) : 91, 97
. : milestone, 94,
master - mean (93ms) : 90, 96
. : milestone, 93,
section CallTarget+Inlining+NGEN
This PR (5225) - mean (671ms) : 647, 695
. : milestone, 671,
master - mean (662ms) : 646, 678
. : milestone, 662,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5225) - mean (187ms) : 183, 190
. : milestone, 187,
master - mean (188ms) : 184, 191
. : milestone, 188,
section CallTarget+Inlining+NGEN
This PR (5225) - mean (1,055ms) : 1030, 1079
. : milestone, 1055,
master - mean (1,059ms) : 1037, 1081
. : milestone, 1059,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5225) - mean (270ms) : 265, 274
. : milestone, 270,
master - mean (270ms) : 264, 276
. : milestone, 270,
section CallTarget+Inlining+NGEN
This PR (5225) - mean (1,055ms) : 1031, 1080
. : milestone, 1055,
master - mean (1,055ms) : 1030, 1080
. : milestone, 1055,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5225) - mean (258ms) : 253, 263
. : milestone, 258,
master - mean (259ms) : 255, 263
. : milestone, 259,
section CallTarget+Inlining+NGEN
This PR (5225) - mean (998ms) : 970, 1025
. : milestone, 998,
master - mean (1,005ms) : 985, 1026
. : milestone, 1005,
|
Benchmarks Report 🐌Benchmarks for #5225 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.Asm.AppSecBodyBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Asm.AppSecEncoderBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Asm.AppSecWafBenchmark - 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.Iast.StringAspectsBenchmark - Same speed ✔️ More allocations
|
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net472 | 55.75 KB | 57.9 KB | 2.14 KB | 3.85% |
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0 | 204.86 KB | 201.94 KB | -2.93 KB | -1.43% |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StringConcatBenchmark |
net6.0 | 51.1μs | 208ns | 749ns | 0 | 0 | 0 | 43.44 KB |
master | StringConcatBenchmark |
netcoreapp3.1 | 61μs | 869ns | 8.56μs | 0 | 0 | 0 | 42.64 KB |
master | StringConcatBenchmark |
net472 | 37.3μs | 67.1ns | 242ns | 0 | 0 | 0 | 55.75 KB |
master | StringConcatAspectBenchmark |
net6.0 | 271μs | 2.98μs | 27.5μs | 0 | 0 | 0 | 204.86 KB |
master | StringConcatAspectBenchmark |
netcoreapp3.1 | 277μs | 1.17μs | 5.46μs | 0 | 0 | 0 | 201.66 KB |
master | StringConcatAspectBenchmark |
net472 | 233μs | 1.23μs | 7.19μs | 0 | 0 | 0 | 221.18 KB |
#5225 | StringConcatBenchmark |
net6.0 | 50.8μs | 223ns | 805ns | 0 | 0 | 0 | 43.44 KB |
#5225 | StringConcatBenchmark |
netcoreapp3.1 | 57.4μs | 671ns | 6.47μs | 0 | 0 | 0 | 42.64 KB |
#5225 | StringConcatBenchmark |
net472 | 38.4μs | 78.8ns | 284ns | 0 | 0 | 0 | 57.9 KB |
#5225 | StringConcatAspectBenchmark |
net6.0 | 264μs | 1.03μs | 5.16μs | 0 | 0 | 0 | 201.94 KB |
#5225 | StringConcatAspectBenchmark |
netcoreapp3.1 | 277μs | 1.56μs | 10.2μs | 0 | 0 | 0 | 201.45 KB |
#5225 | StringConcatAspectBenchmark |
net472 | 246μs | 3.06μs | 28.7μs | 0 | 0 | 0 | 221.18 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 | 1.52μs | 0.832ns | 3.11ns | 0.022 | 0 | 0 | 1.58 KB |
master | EnrichedLog |
netcoreapp3.1 | 2.27μs | 1.08ns | 4.03ns | 0.0214 | 0 | 0 | 1.58 KB |
master | EnrichedLog |
net472 | 2.47μs | 4.55ns | 17.6ns | 0.239 | 0 | 0 | 1.51 KB |
#5225 | EnrichedLog |
net6.0 | 1.54μs | 0.78ns | 2.92ns | 0.0224 | 0 | 0 | 1.58 KB |
#5225 | EnrichedLog |
netcoreapp3.1 | 2.29μs | 0.674ns | 2.52ns | 0.0216 | 0 | 0 | 1.58 KB |
#5225 | EnrichedLog |
net472 | 2.47μs | 1.26ns | 4.56ns | 0.238 | 0 | 0 | 1.51 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 | 86.7ns | 324ns | 0.0564 | 0 | 0 | 4.22 KB |
master | EnrichedLog |
netcoreapp3.1 | 118μs | 126ns | 488ns | 0.0592 | 0 | 0 | 4.22 KB |
master | EnrichedLog |
net472 | 147μs | 52ns | 202ns | 0.659 | 0.22 | 0 | 4.4 KB |
#5225 | EnrichedLog |
net6.0 | 116μs | 111ns | 416ns | 0.0577 | 0 | 0 | 4.22 KB |
#5225 | EnrichedLog |
netcoreapp3.1 | 120μs | 141ns | 508ns | 0 | 0 | 0 | 4.22 KB |
#5225 | EnrichedLog |
net472 | 147μs | 57.8ns | 224ns | 0.658 | 0.219 | 0 | 4.4 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 | 2.98μs | 1ns | 3.76ns | 0.0298 | 0 | 0 | 2.14 KB |
master | EnrichedLog |
netcoreapp3.1 | 4.43μs | 17.8ns | 69.1ns | 0.0277 | 0 | 0 | 2.14 KB |
master | EnrichedLog |
net472 | 4.96μs | 0.882ns | 3.42ns | 0.309 | 0 | 0 | 1.95 KB |
#5225 | EnrichedLog |
net6.0 | 2.94μs | 0.958ns | 3.71ns | 0.0294 | 0 | 0 | 2.14 KB |
#5225 | EnrichedLog |
netcoreapp3.1 | 4.34μs | 10.6ns | 41.1ns | 0.0289 | 0 | 0 | 2.14 KB |
#5225 | EnrichedLog |
net472 | 4.87μs | 1.28ns | 4.78ns | 0.31 | 0 | 0 | 1.95 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.34μs | 0.237ns | 0.856ns | 0.0154 | 0 | 0 | 1.11 KB |
master | SendReceive |
netcoreapp3.1 | 1.81μs | 1.5ns | 5.8ns | 0.0153 | 0 | 0 | 1.11 KB |
master | SendReceive |
net472 | 2.17μs | 3.06ns | 11.9ns | 0.178 | 0 | 0 | 1.12 KB |
#5225 | SendReceive |
net6.0 | 1.35μs | 0.508ns | 1.9ns | 0.0156 | 0 | 0 | 1.11 KB |
#5225 | SendReceive |
netcoreapp3.1 | 1.72μs | 1.88ns | 7.02ns | 0.0153 | 0 | 0 | 1.11 KB |
#5225 | SendReceive |
net472 | 2.07μs | 1.33ns | 4.98ns | 0.178 | 0 | 0 | 1.12 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.85μs | 0.725ns | 2.71ns | 0.0215 | 0 | 0 | 1.54 KB |
master | EnrichedLog |
netcoreapp3.1 | 3.92μs | 1.14ns | 4.26ns | 0.0214 | 0 | 0 | 1.58 KB |
master | EnrichedLog |
net472 | 4.26μs | 2.28ns | 8.85ns | 0.313 | 0 | 0 | 1.97 KB |
#5225 | EnrichedLog |
net6.0 | 2.71μs | 0.563ns | 2.03ns | 0.0216 | 0 | 0 | 1.54 KB |
#5225 | EnrichedLog |
netcoreapp3.1 | 3.91μs | 1.23ns | 4.78ns | 0.0217 | 0 | 0 | 1.58 KB |
#5225 | EnrichedLog |
net472 | 4.25μs | 1.66ns | 6.42ns | 0.313 | 0 | 0 | 1.97 KB |
Benchmarks.Trace.SpanBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #5225
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0
1.151
622.30
540.54
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 | 1.151 | 622.30 | 540.54 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 501ns | 0.462ns | 1.79ns | 0.0076 | 0 | 0 | 544 B |
master | StartFinishSpan |
netcoreapp3.1 | 732ns | 0.808ns | 3.02ns | 0.00728 | 0 | 0 | 544 B |
master | StartFinishSpan |
net472 | 760ns | 1.33ns | 5.15ns | 0.0866 | 0 | 0 | 546 B |
master | StartFinishScope |
net6.0 | 621ns | 0.7ns | 2.71ns | 0.00928 | 0 | 0 | 664 B |
master | StartFinishScope |
netcoreapp3.1 | 809ns | 0.389ns | 1.51ns | 0.00893 | 0 | 0 | 664 B |
master | StartFinishScope |
net472 | 992ns | 1.72ns | 6.66ns | 0.099 | 0 | 0 | 626 B |
#5225 | StartFinishSpan |
net6.0 | 473ns | 0.86ns | 3.33ns | 0.00759 | 0 | 0 | 544 B |
#5225 | StartFinishSpan |
netcoreapp3.1 | 765ns | 1.39ns | 5.37ns | 0.0073 | 0 | 0 | 544 B |
#5225 | StartFinishSpan |
net472 | 809ns | 2.1ns | 8.12ns | 0.0866 | 0 | 0 | 546 B |
#5225 | StartFinishScope |
net6.0 | 540ns | 0.78ns | 3.02ns | 0.00941 | 0 | 0 | 664 B |
#5225 | StartFinishScope |
netcoreapp3.1 | 792ns | 1.52ns | 5.89ns | 0.00882 | 0 | 0 | 664 B |
#5225 | StartFinishScope |
net472 | 947ns | 2.06ns | 7.96ns | 0.0991 | 0 | 0 | 626 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #5225
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑netcoreapp3.1
1.119
1,032.27
922.36
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑netcoreapp3.1 | 1.119 | 1,032.27 | 922.36 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 655ns | 0.975ns | 3.78ns | 0.00916 | 0 | 0 | 664 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 1.03μs | 1.2ns | 4.64ns | 0.00898 | 0 | 0 | 664 B |
master | RunOnMethodBegin |
net472 | 1.08μs | 1.71ns | 6.62ns | 0.0994 | 0 | 0 | 626 B |
#5225 | RunOnMethodBegin |
net6.0 | 593ns | 1.22ns | 4.74ns | 0.00939 | 0 | 0 | 664 B |
#5225 | RunOnMethodBegin |
netcoreapp3.1 | 918ns | 2.83ns | 11ns | 0.00881 | 0 | 0 | 664 B |
#5225 | RunOnMethodBegin |
net472 | 1.12μs | 2.26ns | 8.75ns | 0.0994 | 0 | 0 | 626 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 (5225) (10.670M) : 0, 10669547
master (11.053M) : 0, 11052820
benchmarks/2.9.0 (10.979M) : 0, 10979446
section Automatic
This PR (5225) (7.250M) : 0, 7249888
master (7.530M) : 0, 7530391
benchmarks/2.9.0 (7.859M) : 0, 7859038
section Trace stats
This PR (5225) (7.745M) : 0, 7745363
master (7.884M) : 0, 7884293
section Manual
This PR (5225) (9.206M) : 0, 9205557
master (9.459M) : 0, 9459364
section Manual + Automatic
This PR (5225) (6.959M) : 0, 6959276
master (7.041M) : 0, 7040592
section Version Conflict
This PR (5225) (6.235M) : 0, 6234804
master (6.348M) : 0, 6347921
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5225) (9.673M) : 0, 9672828
master (9.499M) : 0, 9498623
benchmarks/2.9.0 (9.584M) : 0, 9584350
section Automatic
This PR (5225) (6.567M) : 0, 6566700
master (6.616M) : 0, 6616463
section Trace stats
This PR (5225) (6.773M) : 0, 6772783
master (6.746M) : 0, 6745954
section Manual
This PR (5225) (8.357M) : 0, 8357045
master (8.055M) : 0, 8055213
section Manual + Automatic
This PR (5225) (6.108M) : 0, 6108253
master (6.248M) : 0, 6248342
section Version Conflict
This PR (5225) (5.735M) : 0, 5734797
master (5.714M) : 0, 5714359
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5225) (9.906M) : 0, 9906288
master (10.382M) : 0, 10381892
benchmarks/2.9.0 (10.208M) : 0, 10207519
section Automatic
This PR (5225) (6.896M) : crit ,0, 6895883
master (7.344M) : 0, 7343803
benchmarks/2.9.0 (7.459M) : 0, 7458789
section Trace stats
This PR (5225) (7.319M) : 0, 7318794
master (7.700M) : 0, 7700057
section Manual
This PR (5225) (9.116M) : 0, 9116350
master (9.131M) : 0, 9131037
section Manual + Automatic
This PR (5225) (7.120M) : 0, 7120490
master (7.165M) : 0, 7164860
section Version Conflict
This PR (5225) (6.390M) : 0, 6390141
master (6.399M) : 0, 6399272
gantt
title Throughput Linux x64 (ASM) (Total requests)
dateFormat X
axisFormat %s
section Baseline
master (7.408M) : 0, 7408055
benchmarks/2.9.0 (7.796M) : 0, 7796204
section No attack
master (1.828M) : 0, 1827588
benchmarks/2.9.0 (3.173M) : 0, 3173080
section Attack
master (1.470M) : 0, 1470225
benchmarks/2.9.0 (2.461M) : 0, 2460599
section Blocking
master (3.121M) : 0, 3121169
section IAST default
master (6.311M) : 0, 6310654
section IAST full
master (5.513M) : 0, 5512612
section Base vuln
master (0.930M) : 0, 929851
section IAST vuln
master (0.849M) : 0, 849115
|
Summary of changes
Some generate code that wasn't committed.