-
Notifications
You must be signed in to change notification settings - Fork 137
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
[ASM] Downgrade middleware log if no current span found #4932
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.
Mostly harmless :)
Datadog ReportBranch report: ✅ |
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 (4932) - mean (72ms) : 62, 82
. : milestone, 72,
master - mean (70ms) : 62, 79
. : milestone, 70,
section CallTarget+Inlining+NGEN
This PR (4932) - mean (1,000ms) : 968, 1032
. : milestone, 1000,
master - mean (996ms) : 974, 1017
. : milestone, 996,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (4932) - mean (106ms) : 102, 110
. : milestone, 106,
master - mean (106ms) : 103, 109
. : milestone, 106,
section CallTarget+Inlining+NGEN
This PR (4932) - mean (692ms) : 674, 710
. : milestone, 692,
master - mean (691ms) : 674, 708
. : milestone, 691,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (4932) - mean (90ms) : 88, 93
. : milestone, 90,
master - mean (91ms) : 87, 95
. : milestone, 91,
section CallTarget+Inlining+NGEN
This PR (4932) - mean (660ms) : 639, 681
. : milestone, 660,
master - mean (657ms) : 637, 676
. : milestone, 657,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (4932) - mean (188ms) : 186, 191
. : milestone, 188,
master - mean (189ms) : 185, 193
. : milestone, 189,
section CallTarget+Inlining+NGEN
This PR (4932) - mean (1,132ms) : 1111, 1153
. : milestone, 1132,
master - mean (1,137ms) : 1114, 1159
. : milestone, 1137,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (4932) - mean (272ms) : 267, 278
. : milestone, 272,
master - mean (271ms) : 269, 274
. : milestone, 271,
section CallTarget+Inlining+NGEN
This PR (4932) - mean (1,096ms) : 1065, 1127
. : milestone, 1096,
master - mean (1,093ms) : 1069, 1116
. : milestone, 1093,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (4932) - mean (262ms) : 257, 266
. : milestone, 262,
master - mean (261ms) : 257, 265
. : milestone, 261,
section CallTarget+Inlining+NGEN
This PR (4932) - mean (1,057ms) : 1035, 1080
. : milestone, 1057,
master - mean (1,059ms) : 1037, 1080
. : milestone, 1059,
|
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 (4932) (11.548M) : 0, 11547779
master (11.398M) : 0, 11397842
benchmarks/2.9.0 (11.178M) : 0, 11177752
section Automatic
This PR (4932) (7.903M) : 0, 7903311
master (7.741M) : 0, 7741213
benchmarks/2.9.0 (8.258M) : 0, 8258139
section Trace stats
This PR (4932) (8.147M) : 0, 8146888
master (7.838M) : 0, 7838308
section Manual
This PR (4932) (10.045M) : 0, 10045486
master (9.640M) : 0, 9639565
section Manual + Automatic
This PR (4932) (7.523M) : 0, 7522697
master (7.091M) : 0, 7090844
section Version Conflict
This PR (4932) (6.772M) : 0, 6772010
master (6.356M) : 0, 6355720
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (4932) (9.619M) : 0, 9618535
master (9.626M) : 0, 9625782
benchmarks/2.9.0 (9.499M) : 0, 9498942
section Automatic
This PR (4932) (6.585M) : 0, 6584764
master (6.688M) : 0, 6687590
section Trace stats
This PR (4932) (6.921M) : 0, 6920754
master (6.778M) : 0, 6778098
section Manual
This PR (4932) (8.331M) : 0, 8330539
master (8.409M) : 0, 8408747
section Manual + Automatic
This PR (4932) (5.959M) : 0, 5959285
master (6.238M) : 0, 6238241
section Version Conflict
This PR (4932) (5.727M) : 0, 5727068
master (5.861M) : 0, 5860949
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (4932) (10.578M) : 0, 10577982
section Automatic
This PR (4932) (7.343M) : 0, 7342582
section Trace stats
This PR (4932) (7.584M) : 0, 7584433
section Manual
This PR (4932) (9.019M) : 0, 9018953
section Manual + Automatic
This PR (4932) (6.901M) : 0, 6901197
section Version Conflict
This PR (4932) (6.207M) : 0, 6207196
gantt
title Throughput Linux x64 (ASM) (Total requests)
dateFormat X
axisFormat %s
section Baseline
master (7.354M) : 0, 7353594
benchmarks/2.9.0 (7.850M) : 0, 7850470
section No attack
master (1.955M) : 0, 1954984
benchmarks/2.9.0 (3.255M) : 0, 3255134
section Attack
master (1.550M) : 0, 1549695
benchmarks/2.9.0 (2.479M) : 0, 2478846
section Blocking
master (3.280M) : 0, 3279832
section IAST default
master (6.465M) : 0, 6465390
section IAST full
master (5.850M) : 0, 5849810
section Base vuln
master (0.945M) : 0, 944933
section IAST vuln
master (0.871M) : 0, 871244
|
Benchmarks Report 🐌Benchmarks for #4932 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.AppSecWafBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AspNetCoreBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark - Same speed ✔️ More allocations
|
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑net6.0 | 41.4 KB | 41.77 KB | 363 B | 0.88% |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | WriteAndFlushEnrichedTraces |
net6.0 | 561μs | 1.07μs | 4.14μs | 0.541 | 0 | 0 | 41.4 KB |
master | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 653μs | 1.2μs | 4.63μs | 0.329 | 0 | 0 | 41.69 KB |
master | WriteAndFlushEnrichedTraces |
net472 | 823μs | 3.17μs | 12.3μs | 8.12 | 2.44 | 0.406 | 53.24 KB |
#4932 | WriteAndFlushEnrichedTraces |
net6.0 | 547μs | 1.88μs | 7.26μs | 0.563 | 0 | 0 | 41.77 KB |
#4932 | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 662μs | 981ns | 3.8μs | 0.331 | 0 | 0 | 41.62 KB |
#4932 | WriteAndFlushEnrichedTraces |
net472 | 827μs | 2.89μs | 11.2μs | 8.13 | 2.57 | 0.428 | 53.23 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 | 1.13μs | 0.506ns | 1.89ns | 0.0107 | 0 | 0 | 768 B |
master | ExecuteNonQuery |
netcoreapp3.1 | 1.44μs | 0.566ns | 2.19ns | 0.0101 | 0 | 0 | 768 B |
master | ExecuteNonQuery |
net472 | 1.71μs | 0.802ns | 3.11ns | 0.116 | 0 | 0 | 730 B |
#4932 | ExecuteNonQuery |
net6.0 | 1.03μs | 4.26ns | 16.5ns | 0.0106 | 0 | 0 | 768 B |
#4932 | ExecuteNonQuery |
netcoreapp3.1 | 1.45μs | 1.12ns | 4.34ns | 0.01 | 0 | 0 | 768 B |
#4932 | ExecuteNonQuery |
net472 | 1.81μs | 3.53ns | 13.7ns | 0.116 | 0 | 0 | 730 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.29μs | 0.819ns | 3.17ns | 0.013 | 0 | 0 | 936 B |
master | CallElasticsearch |
netcoreapp3.1 | 1.49μs | 0.728ns | 2.72ns | 0.0129 | 0 | 0 | 936 B |
master | CallElasticsearch |
net472 | 2.49μs | 1.12ns | 4.33ns | 0.152 | 0 | 0 | 955 B |
master | CallElasticsearchAsync |
net6.0 | 1.34μs | 0.529ns | 2.05ns | 0.0127 | 0 | 0 | 912 B |
master | CallElasticsearchAsync |
netcoreapp3.1 | 1.63μs | 0.673ns | 2.61ns | 0.0128 | 0 | 0 | 984 B |
master | CallElasticsearchAsync |
net472 | 2.7μs | 1.09ns | 4.2ns | 0.16 | 0 | 0 | 1.01 KB |
#4932 | CallElasticsearch |
net6.0 | 1.2μs | 0.461ns | 1.73ns | 0.0133 | 0 | 0 | 936 B |
#4932 | CallElasticsearch |
netcoreapp3.1 | 1.55μs | 0.678ns | 2.54ns | 0.0125 | 0 | 0 | 936 B |
#4932 | CallElasticsearch |
net472 | 2.53μs | 0.89ns | 3.45ns | 0.151 | 0.00127 | 0 | 955 B |
#4932 | CallElasticsearchAsync |
net6.0 | 1.32μs | 0.795ns | 2.98ns | 0.0125 | 0 | 0 | 912 B |
#4932 | CallElasticsearchAsync |
netcoreapp3.1 | 1.64μs | 1.33ns | 5.15ns | 0.0132 | 0 | 0 | 984 B |
#4932 | CallElasticsearchAsync |
net472 | 2.64μs | 1.03ns | 3.99ns | 0.161 | 0 | 0 | 1.01 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.31μs | 1.02ns | 3.96ns | 0.0125 | 0 | 0 | 912 B |
master | ExecuteAsync |
netcoreapp3.1 | 1.65μs | 2.55ns | 9.89ns | 0.0116 | 0 | 0 | 912 B |
master | ExecuteAsync |
net472 | 1.8μs | 0.606ns | 2.27ns | 0.138 | 0 | 0 | 875 B |
#4932 | ExecuteAsync |
net6.0 | 1.28μs | 0.849ns | 3.29ns | 0.0128 | 0 | 0 | 912 B |
#4932 | ExecuteAsync |
netcoreapp3.1 | 1.69μs | 0.885ns | 3.43ns | 0.012 | 0 | 0 | 912 B |
#4932 | ExecuteAsync |
net472 | 1.77μs | 3.26ns | 12.6ns | 0.138 | 0.000881 | 0 | 875 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 | 4.16μs | 2.85ns | 10.7ns | 0.029 | 0 | 0 | 2.1 KB |
master | SendAsync |
netcoreapp3.1 | 4.91μs | 1.56ns | 6.05ns | 0.0339 | 0 | 0 | 2.63 KB |
master | SendAsync |
net472 | 7.81μs | 2.37ns | 9.18ns | 0.523 | 0 | 0 | 3.31 KB |
#4932 | SendAsync |
net6.0 | 4.2μs | 1.33ns | 4.96ns | 0.0289 | 0 | 0 | 2.1 KB |
#4932 | SendAsync |
netcoreapp3.1 | 4.93μs | 2.06ns | 7.13ns | 0.0346 | 0 | 0 | 2.63 KB |
#4932 | SendAsync |
net472 | 7.98μs | 11.2ns | 43.3ns | 0.521 | 0 | 0 | 3.31 KB |
Benchmarks.Trace.Iast.StringAspectsBenchmark - Slower ⚠️ More allocations ⚠️
Slower ⚠️ in #4932
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark(parameters: System.Collections.Generic.List`1[System.String])‑net472
1.250
50,150.00
62,700.00
Faster 🎉 in #4932
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark(parameters: System.Collections.Generic.List`1[System.String])‑net6.0
1.197
61,900.00
51,700.00
bimodal
More allocations ⚠️ in #4932
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark(parameters: System.Collections.Generic.List`1[System.String])‑net472
57.34 KB
90.11 KB
32.77 KB
57.14%
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark(parameters: System.Collections.Generic.List`1[System.String])‑net472 | 1.250 | 50,150.00 | 62,700.00 |
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark(parameters: System.Collections.Generic.List`1[System.String])‑net6.0 | 1.197 | 61,900.00 | 51,700.00 | bimodal |
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark(parameters: System.Collections.Generic.List`1[System.String])‑net472 | 57.34 KB | 90.11 KB | 32.77 KB | 57.14% |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StringConcatBenchmark(parameters=Syste(...)ring] [48]) |
net6.0 | 62.3μs | 746ns | 7.46μs | 0 | 0 | 0 | 43.44 KB |
master | StringConcatBenchmark(parameters=Syste(...)ring] [48]) |
netcoreapp3.1 | 53μs | 261ns | 1.08μs | 0 | 0 | 0 | 42.64 KB |
master | StringConcatBenchmark(parameters=Syste(...)ring] [48]) |
net472 | 37.6μs | 103ns | 370ns | 0 | 0 | 0 | 59.98 KB |
master | StringConcatAspectBenchmark(parameters=Syste(...)ring] [48]) |
net6.0 | 90.3μs | 2.87μs | 28.7μs | 0 | 0 | 0 | 43.29 KB |
master | StringConcatAspectBenchmark(parameters=Syste(...)ring] [48]) |
netcoreapp3.1 | 106μs | 3.74μs | 37.3μs | 0 | 0 | 0 | 42.64 KB |
master | StringConcatAspectBenchmark(parameters=Syste(...)ring] [48]) |
net472 | 50.1μs | 210ns | 840ns | 0 | 0 | 0 | 57.34 KB |
#4932 | StringConcatBenchmark(parameters=Syste(...)ring] [48]) |
net6.0 | 52.1μs | 268ns | 1.86μs | 0 | 0 | 0 | 43.44 KB |
#4932 | StringConcatBenchmark(parameters=Syste(...)ring] [48]) |
netcoreapp3.1 | 53.1μs | 246ns | 1.23μs | 0 | 0 | 0 | 42.64 KB |
#4932 | StringConcatBenchmark(parameters=Syste(...)ring] [48]) |
net472 | 38.1μs | 119ns | 447ns | 0 | 0 | 0 | 59.7 KB |
#4932 | StringConcatAspectBenchmark(parameters=Syste(...)ring] [48]) |
net6.0 | 67μs | 341ns | 1.52μs | 0 | 0 | 0 | 43.29 KB |
#4932 | StringConcatAspectBenchmark(parameters=Syste(...)ring] [48]) |
netcoreapp3.1 | 111μs | 3.12μs | 30.9μs | 0 | 0 | 0 | 42.64 KB |
#4932 | StringConcatAspectBenchmark(parameters=Syste(...)ring] [48]) |
net472 | 62.2μs | 408ns | 3.8μs | 0 | 0 | 0 | 90.11 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.62μs | 1.08ns | 4.18ns | 0.0219 | 0 | 0 | 1.57 KB |
master | EnrichedLog |
netcoreapp3.1 | 2.2μs | 1.01ns | 3.91ns | 0.0209 | 0 | 0 | 1.57 KB |
master | EnrichedLog |
net472 | 2.55μs | 2.32ns | 8.7ns | 0.238 | 0 | 0 | 1.5 KB |
#4932 | EnrichedLog |
net6.0 | 1.5μs | 0.849ns | 3.18ns | 0.0219 | 0 | 0 | 1.57 KB |
#4932 | EnrichedLog |
netcoreapp3.1 | 2.15μs | 1.29ns | 4.84ns | 0.0214 | 0 | 0 | 1.57 KB |
#4932 | EnrichedLog |
net472 | 2.5μs | 2.26ns | 8.75ns | 0.237 | 0 | 0 | 1.5 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 | 203ns | 787ns | 0.0567 | 0 | 0 | 4.21 KB |
master | EnrichedLog |
netcoreapp3.1 | 118μs | 224ns | 869ns | 0.0589 | 0 | 0 | 4.21 KB |
master | EnrichedLog |
net472 | 149μs | 107ns | 413ns | 0.67 | 0.223 | 0 | 4.39 KB |
#4932 | EnrichedLog |
net6.0 | 112μs | 88.3ns | 342ns | 0.0559 | 0 | 0 | 4.21 KB |
#4932 | EnrichedLog |
netcoreapp3.1 | 117μs | 86.2ns | 334ns | 0.0586 | 0 | 0 | 4.21 KB |
#4932 | EnrichedLog |
net472 | 147μs | 76.5ns | 296ns | 0.66 | 0.22 | 0 | 4.39 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.89μs | 0.841ns | 3.26ns | 0.0289 | 0 | 0 | 2.13 KB |
master | EnrichedLog |
netcoreapp3.1 | 4.38μs | 2.83ns | 10.9ns | 0.029 | 0 | 0 | 2.13 KB |
master | EnrichedLog |
net472 | 4.93μs | 4.23ns | 16.4ns | 0.307 | 0 | 0 | 1.95 KB |
#4932 | EnrichedLog |
net6.0 | 3.02μs | 0.886ns | 3.2ns | 0.0303 | 0 | 0 | 2.13 KB |
#4932 | EnrichedLog |
netcoreapp3.1 | 4.23μs | 1.99ns | 7.72ns | 0.0278 | 0 | 0 | 2.13 KB |
#4932 | EnrichedLog |
net472 | 4.91μs | 2.68ns | 10.4ns | 0.309 | 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.3μs | 0.998ns | 3.6ns | 0.0155 | 0 | 0 | 1.1 KB |
master | SendReceive |
netcoreapp3.1 | 1.72μs | 0.663ns | 2.48ns | 0.0145 | 0 | 0 | 1.1 KB |
master | SendReceive |
net472 | 2.14μs | 1.99ns | 7.7ns | 0.177 | 0 | 0 | 1.12 KB |
#4932 | SendReceive |
net6.0 | 1.41μs | 1.13ns | 4.36ns | 0.0153 | 0 | 0 | 1.1 KB |
#4932 | SendReceive |
netcoreapp3.1 | 1.74μs | 0.702ns | 2.72ns | 0.0148 | 0 | 0 | 1.1 KB |
#4932 | SendReceive |
net472 | 2.31μs | 1.59ns | 6.16ns | 0.177 | 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.71μs | 0.524ns | 1.89ns | 0.0217 | 0 | 0 | 1.53 KB |
master | EnrichedLog |
netcoreapp3.1 | 3.87μs | 0.762ns | 2.85ns | 0.0212 | 0 | 0 | 1.58 KB |
master | EnrichedLog |
net472 | 4.5μs | 2ns | 7.74ns | 0.311 | 0 | 0 | 1.97 KB |
#4932 | EnrichedLog |
net6.0 | 2.82μs | 1.18ns | 4.41ns | 0.0211 | 0 | 0 | 1.53 KB |
#4932 | EnrichedLog |
netcoreapp3.1 | 3.84μs | 1.97ns | 7.61ns | 0.0214 | 0 | 0 | 1.58 KB |
#4932 | EnrichedLog |
net472 | 4.13μs | 0.936ns | 3.5ns | 0.311 | 0 | 0 | 1.97 KB |
Benchmarks.Trace.SpanBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #4932
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0
1.133
546.16
618.88
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 | 1.133 | 546.16 | 618.88 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 508ns | 0.162ns | 0.627ns | 0.00736 | 0 | 0 | 536 B |
master | StartFinishSpan |
netcoreapp3.1 | 687ns | 0.192ns | 0.691ns | 0.00736 | 0 | 0 | 536 B |
master | StartFinishSpan |
net472 | 761ns | 0.589ns | 2.28ns | 0.0853 | 0 | 0 | 538 B |
master | StartFinishScope |
net6.0 | 546ns | 0.195ns | 0.755ns | 0.00929 | 0 | 0 | 656 B |
master | StartFinishScope |
netcoreapp3.1 | 894ns | 0.287ns | 1.11ns | 0.00886 | 0 | 0 | 656 B |
master | StartFinishScope |
net472 | 974ns | 0.585ns | 2.26ns | 0.098 | 0 | 0 | 618 B |
#4932 | StartFinishSpan |
net6.0 | 467ns | 0.126ns | 0.489ns | 0.00749 | 0 | 0 | 536 B |
#4932 | StartFinishSpan |
netcoreapp3.1 | 676ns | 0.208ns | 0.752ns | 0.00714 | 0 | 0 | 536 B |
#4932 | StartFinishSpan |
net472 | 764ns | 0.36ns | 1.39ns | 0.0854 | 0 | 0 | 538 B |
#4932 | StartFinishScope |
net6.0 | 619ns | 0.368ns | 1.43ns | 0.00928 | 0 | 0 | 656 B |
#4932 | StartFinishScope |
netcoreapp3.1 | 844ns | 0.41ns | 1.59ns | 0.00873 | 0 | 0 | 656 B |
#4932 | StartFinishScope |
net472 | 954ns | 1.19ns | 4.59ns | 0.0978 | 0 | 0 | 618 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 | 710ns | 0.26ns | 0.972ns | 0.00917 | 0 | 0 | 656 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 960ns | 0.311ns | 1.21ns | 0.00899 | 0 | 0 | 656 B |
master | RunOnMethodBegin |
net472 | 1.04μs | 0.519ns | 2.01ns | 0.098 | 0 | 0 | 618 B |
#4932 | RunOnMethodBegin |
net6.0 | 717ns | 0.241ns | 0.932ns | 0.00895 | 0 | 0 | 656 B |
#4932 | RunOnMethodBegin |
netcoreapp3.1 | 952ns | 0.475ns | 1.78ns | 0.00903 | 0 | 0 | 656 B |
#4932 | RunOnMethodBegin |
net472 | 1.1μs | 0.982ns | 3.8ns | 0.0979 | 0 | 0 | 618 B |
Summary of changes
It's not an error as it can happen if the aspnetcore integration has been disabled for example.
To fix later: maybe create a span, in case there's none or just run security checks at least to ensure protection
Reason for change
Implementation details
Test coverage
Other details