-
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
Fix compilation of Samples.Security.AspNetCore5 #6512
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.
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.
TY!
Datadog ReportBranch report: ✅ 0 Failed, 242316 Passed, 2033 Skipped, 18h 30m 26.6s Total Time New Flaky Tests (1)
⌛ Performance Regressions vs Default Branch (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 (6512) - mean (68ms) : 66, 71
. : milestone, 68,
master - mean (69ms) : 66, 72
. : milestone, 69,
section CallTarget+Inlining+NGEN
This PR (6512) - mean (981ms) : 954, 1008
. : milestone, 981,
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 (6512) - mean (107ms) : 105, 110
. : milestone, 107,
master - mean (107ms) : 105, 110
. : milestone, 107,
section CallTarget+Inlining+NGEN
This PR (6512) - mean (679ms) : 661, 697
. : milestone, 679,
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 (6512) - mean (91ms) : 89, 93
. : milestone, 91,
master - mean (91ms) : 90, 93
. : milestone, 91,
section CallTarget+Inlining+NGEN
This PR (6512) - mean (636ms) : 622, 650
. : milestone, 636,
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 (6512) - mean (194ms) : 189, 199
. : milestone, 194,
master - mean (195ms) : 189, 202
. : milestone, 195,
section CallTarget+Inlining+NGEN
This PR (6512) - mean (1,103ms) : 1076, 1131
. : milestone, 1103,
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 (6512) - mean (280ms) : 275, 285
. : milestone, 280,
master - mean (278ms) : 273, 282
. : milestone, 278,
section CallTarget+Inlining+NGEN
This PR (6512) - mean (875ms) : 850, 900
. : milestone, 875,
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 (6512) - mean (267ms) : 264, 271
. : milestone, 267,
master - mean (268ms) : 264, 272
. : milestone, 268,
section CallTarget+Inlining+NGEN
This PR (6512) - mean (853ms) : 823, 884
. : milestone, 853,
master - mean (857ms) : 829, 885
. : milestone, 857,
|
Benchmarks Report for appsec 🐌Benchmarks for #6512 compared to master:
The following thresholds were used for comparing the benchmark speeds:
Allocation changes below 0.5% are ignored. Benchmark detailsBenchmarks.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.Iast.StringAspectsBenchmark - Same speed ✔️ More allocations
|
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net472 | 276.42 KB | 278.53 KB | 2.11 KB | 0.76% |
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0 | 255.18 KB | 256.62 KB | 1.44 KB | 0.56% |
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net472 | 61.73 KB | 59.65 KB | -2.08 KB | -3.37% |
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑netcoreapp3.1 | 262.87 KB | 253.83 KB | -9.04 KB | -3.44% |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StringConcatBenchmark |
net6.0 | 60μs | 755ns | 7.55μs | 0 | 0 | 0 | 43.44 KB |
master | StringConcatBenchmark |
netcoreapp3.1 | 53.2μs | 243ns | 1.09μs | 0 | 0 | 0 | 42.64 KB |
master | StringConcatBenchmark |
net472 | 37.5μs | 111ns | 416ns | 0 | 0 | 0 | 61.73 KB |
master | StringConcatAspectBenchmark |
net6.0 | 321μs | 1.8μs | 11.7μs | 0 | 0 | 0 | 255.18 KB |
master | StringConcatAspectBenchmark |
netcoreapp3.1 | 340μs | 1.87μs | 11.4μs | 0 | 0 | 0 | 262.87 KB |
master | StringConcatAspectBenchmark |
net472 | 269μs | 5.16μs | 49.2μs | 0 | 0 | 0 | 276.42 KB |
#6512 | StringConcatBenchmark |
net6.0 | 52.4μs | 260ns | 1.16μs | 0 | 0 | 0 | 43.44 KB |
#6512 | StringConcatBenchmark |
netcoreapp3.1 | 53.7μs | 132ns | 528ns | 0 | 0 | 0 | 42.64 KB |
#6512 | StringConcatBenchmark |
net472 | 38μs | 143ns | 514ns | 0 | 0 | 0 | 59.65 KB |
#6512 | StringConcatAspectBenchmark |
net6.0 | 324μs | 1.81μs | 12.4μs | 0 | 0 | 0 | 256.62 KB |
#6512 | StringConcatAspectBenchmark |
netcoreapp3.1 | 354μs | 1.97μs | 12.9μs | 0 | 0 | 0 | 253.83 KB |
#6512 | StringConcatAspectBenchmark |
net472 | 257μs | 3.16μs | 28.6μs | 0 | 0 | 0 | 278.53 KB |
Summary of changes
Make Samples.Security.AspNetCore5 compile again.
Implementation details
A field that was inadvertently removed was actually used.