-
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
Remove test environment variable in Samples.Console #4948
Conversation
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 (4948) - mean (72ms) : 59, 85
. : milestone, 72,
master - mean (71ms) : 62, 81
. : milestone, 71,
section CallTarget+Inlining+NGEN
This PR (4948) - mean (1,000ms) : 978, 1022
. : milestone, 1000,
master - mean (996ms) : 972, 1020
. : milestone, 996,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (4948) - mean (106ms) : 101, 111
. : milestone, 106,
master - mean (106ms) : 103, 109
. : milestone, 106,
section CallTarget+Inlining+NGEN
This PR (4948) - mean (692ms) : 667, 717
. : milestone, 692,
master - mean (689ms) : 669, 710
. : milestone, 689,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (4948) - mean (90ms) : 86, 94
. : milestone, 90,
master - mean (89ms) : 85, 94
. : milestone, 89,
section CallTarget+Inlining+NGEN
This PR (4948) - mean (660ms) : 632, 688
. : milestone, 660,
master - mean (660ms) : 636, 684
. : milestone, 660,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (4948) - mean (189ms) : 187, 191
. : milestone, 189,
master - mean (189ms) : 185, 193
. : milestone, 189,
section CallTarget+Inlining+NGEN
This PR (4948) - mean (1,135ms) : 1116, 1154
. : milestone, 1135,
master - mean (1,134ms) : 1110, 1158
. : milestone, 1134,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (4948) - mean (272ms) : 269, 276
. : milestone, 272,
master - mean (272ms) : 268, 276
. : milestone, 272,
section CallTarget+Inlining+NGEN
This PR (4948) - mean (1,096ms) : 1065, 1127
. : milestone, 1096,
master - mean (1,087ms) : 1063, 1111
. : milestone, 1087,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (4948) - mean (262ms) : 258, 266
. : milestone, 262,
master - mean (262ms) : 258, 266
. : milestone, 262,
section CallTarget+Inlining+NGEN
This PR (4948) - mean (1,059ms) : 1035, 1083
. : milestone, 1059,
master - mean (1,066ms) : 1041, 1091
. : milestone, 1066,
|
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 (4948) (11.268M) : 0, 11268353
master (11.422M) : 0, 11422363
benchmarks/2.9.0 (11.109M) : 0, 11108980
section Automatic
This PR (4948) (7.863M) : 0, 7862644
master (7.718M) : 0, 7718112
benchmarks/2.9.0 (8.083M) : 0, 8082605
section Trace stats
This PR (4948) (8.064M) : 0, 8063622
master (8.043M) : 0, 8042702
section Manual
This PR (4948) (10.060M) : 0, 10059937
master (10.053M) : 0, 10053065
section Manual + Automatic
This PR (4948) (7.309M) : 0, 7308608
master (7.498M) : 0, 7498064
section Version Conflict
This PR (4948) (6.580M) : 0, 6579588
master (6.744M) : 0, 6743718
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (4948) (9.518M) : 0, 9518260
master (9.441M) : 0, 9441426
benchmarks/2.9.0 (9.303M) : 0, 9302781
section Automatic
This PR (4948) (6.609M) : 0, 6609385
master (6.464M) : 0, 6463674
section Trace stats
This PR (4948) (6.835M) : 0, 6834508
master (6.869M) : 0, 6869265
section Manual
This PR (4948) (8.213M) : 0, 8213086
master (8.253M) : 0, 8253313
section Manual + Automatic
This PR (4948) (6.191M) : 0, 6190919
master (6.141M) : 0, 6140717
section Version Conflict
This PR (4948) (5.744M) : 0, 5743570
master (5.692M) : 0, 5691697
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (4948) (10.424M) : 0, 10424253
master (10.722M) : 0, 10722051
benchmarks/2.9.0 (11.129M) : 0, 11128978
section Automatic
This PR (4948) (7.535M) : 0, 7534968
master (7.482M) : 0, 7481918
benchmarks/2.9.0 (8.109M) : 0, 8108685
section Trace stats
This PR (4948) (7.812M) : 0, 7812214
master (7.894M) : 0, 7893943
section Manual
This PR (4948) (9.277M) : 0, 9276566
master (9.471M) : 0, 9471155
section Manual + Automatic
This PR (4948) (7.246M) : 0, 7246099
master (7.169M) : 0, 7169035
section Version Conflict
This PR (4948) (6.636M) : 0, 6635696
master (6.495M) : 0, 6494592
gantt
title Throughput Linux x64 (ASM) (Total requests)
dateFormat X
axisFormat %s
section Baseline
master (7.523M) : 0, 7523483
benchmarks/2.9.0 (7.724M) : 0, 7724099
section No attack
master (1.964M) : 0, 1963791
benchmarks/2.9.0 (3.167M) : 0, 3166743
section Attack
master (1.574M) : 0, 1574342
benchmarks/2.9.0 (2.437M) : 0, 2436746
section Blocking
master (3.240M) : 0, 3239829
section IAST default
master (6.486M) : 0, 6485841
section IAST full
master (5.855M) : 0, 5855390
section Base vuln
master (0.955M) : 0, 954653
section IAST vuln
master (0.859M) : 0, 858537
|
Benchmarks Report 🐌Benchmarks for #4948 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.41 KB | 41.79 KB | 378 B | 0.91% |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | WriteAndFlushEnrichedTraces |
net6.0 | 547μs | 828ns | 3.21μs | 0.553 | 0 | 0 | 41.41 KB |
master | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 651μs | 530ns | 2.05μs | 0.324 | 0 | 0 | 41.75 KB |
master | WriteAndFlushEnrichedTraces |
net472 | 810μs | 3.33μs | 12.9μs | 8.31 | 2.37 | 0.396 | 53.24 KB |
#4948 | WriteAndFlushEnrichedTraces |
net6.0 | 551μs | 1.81μs | 7.03μs | 0.541 | 0 | 0 | 41.79 KB |
#4948 | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 651μs | 2.18μs | 8.45μs | 0.324 | 0 | 0 | 41.75 KB |
#4948 | WriteAndFlushEnrichedTraces |
net472 | 795μs | 3.11μs | 12.8μs | 8.31 | 2.37 | 0.396 | 53.22 KB |
Benchmarks.Trace.DbCommandBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #4948
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.DbCommandBenchmark.ExecuteNonQuery‑net6.0
1.171
1,109.16
947.07
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.DbCommandBenchmark.ExecuteNonQuery‑net6.0 | 1.171 | 1,109.16 | 947.07 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | ExecuteNonQuery |
net6.0 | 1.11μs | 0.785ns | 3.04ns | 0.0105 | 0 | 0 | 768 B |
master | ExecuteNonQuery |
netcoreapp3.1 | 1.55μs | 0.632ns | 2.45ns | 0.0101 | 0 | 0 | 768 B |
master | ExecuteNonQuery |
net472 | 1.81μs | 0.748ns | 2.9ns | 0.116 | 0 | 0 | 730 B |
#4948 | ExecuteNonQuery |
net6.0 | 947ns | 0.393ns | 1.52ns | 0.0109 | 0 | 0 | 768 B |
#4948 | ExecuteNonQuery |
netcoreapp3.1 | 1.4μs | 4.73ns | 18.3ns | 0.0104 | 0 | 0 | 768 B |
#4948 | ExecuteNonQuery |
net472 | 1.83μs | 0.729ns | 2.73ns | 0.116 | 0.000912 | 0 | 730 B |
Benchmarks.Trace.ElasticsearchBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #4948
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync‑net6.0
1.183
1,348.14
1,139.65
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync‑net6.0 | 1.183 | 1,348.14 | 1,139.65 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | CallElasticsearch |
net6.0 | 1.17μs | 0.427ns | 1.6ns | 0.013 | 0 | 0 | 936 B |
master | CallElasticsearch |
netcoreapp3.1 | 1.58μs | 1.14ns | 4.28ns | 0.0124 | 0 | 0 | 936 B |
master | CallElasticsearch |
net472 | 2.51μs | 1.07ns | 4.16ns | 0.152 | 0 | 0 | 955 B |
master | CallElasticsearchAsync |
net6.0 | 1.35μs | 0.499ns | 1.93ns | 0.0128 | 0 | 0 | 912 B |
master | CallElasticsearchAsync |
netcoreapp3.1 | 1.67μs | 2.04ns | 7.9ns | 0.0132 | 0 | 0 | 984 B |
master | CallElasticsearchAsync |
net472 | 2.58μs | 0.779ns | 3.02ns | 0.16 | 0 | 0 | 1.01 KB |
#4948 | CallElasticsearch |
net6.0 | 1.19μs | 0.676ns | 2.53ns | 0.0132 | 0 | 0 | 936 B |
#4948 | CallElasticsearch |
netcoreapp3.1 | 1.51μs | 1.09ns | 4.06ns | 0.0127 | 0 | 0 | 936 B |
#4948 | CallElasticsearch |
net472 | 2.44μs | 0.455ns | 1.7ns | 0.152 | 0 | 0 | 955 B |
#4948 | CallElasticsearchAsync |
net6.0 | 1.14μs | 0.428ns | 1.6ns | 0.0125 | 0 | 0 | 912 B |
#4948 | CallElasticsearchAsync |
netcoreapp3.1 | 1.65μs | 0.763ns | 2.85ns | 0.0133 | 0 | 0 | 984 B |
#4948 | CallElasticsearchAsync |
net472 | 2.73μs | 0.925ns | 3.58ns | 0.16 | 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.36μs | 1.4ns | 5.42ns | 0.0128 | 0 | 0 | 912 B |
master | ExecuteAsync |
netcoreapp3.1 | 1.67μs | 0.716ns | 2.58ns | 0.0126 | 0 | 0 | 912 B |
master | ExecuteAsync |
net472 | 1.86μs | 0.736ns | 2.76ns | 0.139 | 0 | 0 | 875 B |
#4948 | ExecuteAsync |
net6.0 | 1.25μs | 1.03ns | 4ns | 0.0126 | 0 | 0 | 912 B |
#4948 | ExecuteAsync |
netcoreapp3.1 | 1.66μs | 1.17ns | 4.38ns | 0.0123 | 0 | 0 | 912 B |
#4948 | ExecuteAsync |
net472 | 1.8μs | 0.708ns | 2.65ns | 0.138 | 0 | 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.12μs | 1.98ns | 7.4ns | 0.0288 | 0 | 0 | 2.1 KB |
master | SendAsync |
netcoreapp3.1 | 4.9μs | 3.35ns | 13ns | 0.0344 | 0 | 0 | 2.63 KB |
master | SendAsync |
net472 | 7.75μs | 4.8ns | 18.6ns | 0.523 | 0 | 0 | 3.31 KB |
#4948 | SendAsync |
net6.0 | 4.04μs | 2.55ns | 9.55ns | 0.0302 | 0 | 0 | 2.1 KB |
#4948 | SendAsync |
netcoreapp3.1 | 4.9μs | 2.33ns | 8.39ns | 0.0341 | 0 | 0 | 2.63 KB |
#4948 | SendAsync |
net472 | 7.88μs | 3.61ns | 14ns | 0.525 | 0 | 0 | 3.31 KB |
Benchmarks.Trace.Iast.StringAspectsBenchmark - Same speed ✔️ Fewer allocations 🎉
Fewer allocations 🎉 in #4948
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark(parameters: System.Collections.Generic.List`1[System.String])‑net472
60.02 KB
59.7 KB
-320 B
-0.53%
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark(parameters: System.Collections.Generic.List`1[System.String])‑net472 | 60.02 KB | 59.7 KB | -320 B | -0.53% |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StringConcatBenchmark(parameters=Syste(...)ring] [48]) |
net6.0 | 59μs | 485ns | 4.58μs | 0 | 0 | 0 | 43.44 KB |
master | StringConcatBenchmark(parameters=Syste(...)ring] [48]) |
netcoreapp3.1 | 52.8μs | 258ns | 1.1μs | 0 | 0 | 0 | 42.64 KB |
master | StringConcatBenchmark(parameters=Syste(...)ring] [48]) |
net472 | 38.4μs | 65.7ns | 228ns | 0 | 0 | 0 | 60.02 KB |
master | StringConcatAspectBenchmark(parameters=Syste(...)ring] [48]) |
net6.0 | 66.8μs | 263ns | 983ns | 0 | 0 | 0 | 43.29 KB |
master | StringConcatAspectBenchmark(parameters=Syste(...)ring] [48]) |
netcoreapp3.1 | 95.6μs | 3.94μs | 39.2μs | 0 | 0 | 0 | 42.64 KB |
master | StringConcatAspectBenchmark(parameters=Syste(...)ring] [48]) |
net472 | 63.7μs | 316ns | 1.45μs | 0 | 0 | 0 | 57.34 KB |
#4948 | StringConcatBenchmark(parameters=Syste(...)ring] [48]) |
net6.0 | 59.9μs | 826ns | 8.13μs | 0 | 0 | 0 | 43.44 KB |
#4948 | StringConcatBenchmark(parameters=Syste(...)ring] [48]) |
netcoreapp3.1 | 52.9μs | 279ns | 1.4μs | 0 | 0 | 0 | 42.64 KB |
#4948 | StringConcatBenchmark(parameters=Syste(...)ring] [48]) |
net472 | 38.3μs | 123ns | 444ns | 0 | 0 | 0 | 59.7 KB |
#4948 | StringConcatAspectBenchmark(parameters=Syste(...)ring] [48]) |
net6.0 | 65.8μs | 300ns | 1.16μs | 0 | 0 | 0 | 43.29 KB |
#4948 | StringConcatAspectBenchmark(parameters=Syste(...)ring] [48]) |
netcoreapp3.1 | 106μs | 3.04μs | 30.4μs | 0 | 0 | 0 | 42.64 KB |
#4948 | StringConcatAspectBenchmark(parameters=Syste(...)ring] [48]) |
net472 | 63.7μs | 168ns | 651ns | 0 | 0 | 0 | 57.34 KB |
Benchmarks.Trace.ILoggerBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #4948
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.ILoggerBenchmark.EnrichedLog‑net6.0
1.122
1,630.25
1,452.83
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.ILoggerBenchmark.EnrichedLog‑net6.0 | 1.122 | 1,630.25 | 1,452.83 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 1.63μs | 0.827ns | 2.98ns | 0.022 | 0 | 0 | 1.57 KB |
master | EnrichedLog |
netcoreapp3.1 | 2.07μs | 0.954ns | 3.57ns | 0.0208 | 0 | 0 | 1.57 KB |
master | EnrichedLog |
net472 | 2.75μs | 2.92ns | 11.3ns | 0.237 | 0 | 0 | 1.5 KB |
#4948 | EnrichedLog |
net6.0 | 1.45μs | 0.894ns | 3.35ns | 0.0218 | 0 | 0 | 1.57 KB |
#4948 | EnrichedLog |
netcoreapp3.1 | 2.24μs | 0.494ns | 1.91ns | 0.0212 | 0 | 0 | 1.57 KB |
#4948 | EnrichedLog |
net472 | 2.54μs | 3.52ns | 13.6ns | 0.238 | 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 | 116μs | 133ns | 514ns | 0.0583 | 0 | 0 | 4.21 KB |
master | EnrichedLog |
netcoreapp3.1 | 119μs | 149ns | 577ns | 0.0591 | 0 | 0 | 4.21 KB |
master | EnrichedLog |
net472 | 146μs | 49.3ns | 171ns | 0.658 | 0.219 | 0 | 4.39 KB |
#4948 | EnrichedLog |
net6.0 | 114μs | 77.2ns | 289ns | 0.056 | 0 | 0 | 4.21 KB |
#4948 | EnrichedLog |
netcoreapp3.1 | 117μs | 78.6ns | 305ns | 0.0586 | 0 | 0 | 4.21 KB |
#4948 | EnrichedLog |
net472 | 147μs | 48.2ns | 174ns | 0.663 | 0.221 | 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.99μs | 1.44ns | 5.57ns | 0.0299 | 0 | 0 | 2.13 KB |
master | EnrichedLog |
netcoreapp3.1 | 4.34μs | 1.48ns | 5.73ns | 0.0282 | 0 | 0 | 2.13 KB |
master | EnrichedLog |
net472 | 4.94μs | 3.34ns | 12.9ns | 0.307 | 0 | 0 | 1.95 KB |
#4948 | EnrichedLog |
net6.0 | 3.01μs | 1.58ns | 5.92ns | 0.0301 | 0 | 0 | 2.13 KB |
#4948 | EnrichedLog |
netcoreapp3.1 | 4.17μs | 2.53ns | 9.45ns | 0.0291 | 0 | 0 | 2.13 KB |
#4948 | EnrichedLog |
net472 | 5μs | 3.95ns | 15.3ns | 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.27μs | 0.735ns | 2.85ns | 0.0151 | 0 | 0 | 1.1 KB |
master | SendReceive |
netcoreapp3.1 | 1.77μs | 3.93ns | 15.2ns | 0.0147 | 0 | 0 | 1.1 KB |
master | SendReceive |
net472 | 2.14μs | 1.29ns | 4.82ns | 0.177 | 0 | 0 | 1.12 KB |
#4948 | SendReceive |
net6.0 | 1.34μs | 1.21ns | 4.52ns | 0.0156 | 0 | 0 | 1.1 KB |
#4948 | SendReceive |
netcoreapp3.1 | 1.72μs | 1.04ns | 3.88ns | 0.0146 | 0 | 0 | 1.1 KB |
#4948 | SendReceive |
net472 | 2.09μs | 1.43ns | 5.56ns | 0.176 | 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.76μs | 1.15ns | 4.3ns | 0.0207 | 0 | 0 | 1.53 KB |
master | EnrichedLog |
netcoreapp3.1 | 3.99μs | 0.937ns | 3.63ns | 0.02 | 0 | 0 | 1.58 KB |
master | EnrichedLog |
net472 | 4.28μs | 1.71ns | 6.64ns | 0.311 | 0 | 0 | 1.97 KB |
#4948 | EnrichedLog |
net6.0 | 2.82μs | 1.13ns | 4.36ns | 0.0211 | 0 | 0 | 1.53 KB |
#4948 | EnrichedLog |
netcoreapp3.1 | 3.92μs | 1.52ns | 5.69ns | 0.0214 | 0 | 0 | 1.58 KB |
#4948 | EnrichedLog |
net472 | 4.24μs | 1.18ns | 4.4ns | 0.311 | 0 | 0 | 1.97 KB |
Benchmarks.Trace.SpanBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #4948
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net6.0
1.165
450.42
524.78
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net6.0 | 1.165 | 450.42 | 524.78 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 450ns | 0.129ns | 0.483ns | 0.00759 | 0 | 0 | 536 B |
master | StartFinishSpan |
netcoreapp3.1 | 781ns | 1.64ns | 6.37ns | 0.0073 | 0 | 0 | 536 B |
master | StartFinishSpan |
net472 | 765ns | 0.165ns | 0.616ns | 0.0853 | 0 | 0 | 538 B |
master | StartFinishScope |
net6.0 | 515ns | 0.145ns | 0.543ns | 0.00908 | 0 | 0 | 656 B |
master | StartFinishScope |
netcoreapp3.1 | 818ns | 0.436ns | 1.57ns | 0.00896 | 0 | 0 | 656 B |
master | StartFinishScope |
net472 | 928ns | 0.258ns | 1ns | 0.0982 | 0 | 0 | 618 B |
#4948 | StartFinishSpan |
net6.0 | 525ns | 0.238ns | 0.923ns | 0.00752 | 0 | 0 | 536 B |
#4948 | StartFinishSpan |
netcoreapp3.1 | 781ns | 0.2ns | 0.72ns | 0.00702 | 0 | 0 | 536 B |
#4948 | StartFinishSpan |
net472 | 796ns | 0.196ns | 0.758ns | 0.0853 | 0 | 0 | 538 B |
#4948 | StartFinishScope |
net6.0 | 520ns | 0.17ns | 0.659ns | 0.00919 | 0 | 0 | 656 B |
#4948 | StartFinishScope |
netcoreapp3.1 | 854ns | 0.333ns | 1.29ns | 0.00899 | 0 | 0 | 656 B |
#4948 | StartFinishScope |
net472 | 904ns | 0.632ns | 2.45ns | 0.0979 | 0 | 0 | 618 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #4948
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0
1.138
591.38
673.08
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0 | 1.138 | 591.38 | 673.08 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 590ns | 0.645ns | 2.5ns | 0.00911 | 0 | 0 | 656 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 931ns | 1.02ns | 3.93ns | 0.00873 | 0 | 0 | 656 B |
master | RunOnMethodBegin |
net472 | 1.08μs | 0.321ns | 1.24ns | 0.0981 | 0 | 0 | 618 B |
#4948 | RunOnMethodBegin |
net6.0 | 674ns | 0.342ns | 1.32ns | 0.00911 | 0 | 0 | 656 B |
#4948 | RunOnMethodBegin |
netcoreapp3.1 | 883ns | 0.299ns | 1.16ns | 0.00882 | 0 | 0 | 656 B |
#4948 | RunOnMethodBegin |
net472 | 1.17μs | 0.803ns | 3.11ns | 0.0976 | 0 | 0 | 618 B |
b2c2f22
to
84fae18
Compare
Summary of changes
Remove a test that was introduced in #4906 (but forgot to cleanup)