-
Notifications
You must be signed in to change notification settings - Fork 150
Fix RedirectInput test flakyness #7771
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
Conversation
Execution-Time Benchmarks Report ⏱️Execution-time results for samples comparing This PR (7771) 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 (7771) - mean (73ms) : 68, 77
master - mean (69ms) : 68, 71
section Bailout
This PR (7771) - mean (76ms) : 74, 78
master - mean (73ms) : 72, 75
section CallTarget+Inlining+NGEN
This PR (7771) - mean (1,088ms) : 1014, 1162
master - mean (1,059ms) : 1008, 1111
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 (7771) - mean (120ms) : 110, 130
master - mean (108ms) : 105, 111
section Bailout
This PR (7771) - mean (118ms) : crit, 113, 123
master - mean (109ms) : 107, 111
section CallTarget+Inlining+NGEN
This PR (7771) - mean (817ms) : crit, 780, 855
master - mean (764ms) : 725, 802
FakeDbCommand (.NET 6)gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7771) - mean (102ms) : 97, 107
master - mean (96ms) : 93, 98
section Bailout
This PR (7771) - mean (104ms) : crit, 99, 108
master - mean (97ms) : 95, 98
section CallTarget+Inlining+NGEN
This PR (7771) - mean (763ms) : 710, 815
master - mean (722ms) : 674, 770
FakeDbCommand (.NET 8)gantt
title Execution time (ms) FakeDbCommand (.NET 8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7771) - mean (100ms) : 96, 104
master - mean (96ms) : 94, 98
section Bailout
This PR (7771) - mean (101ms) : 97, 105
master - mean (97ms) : 95, 98
section CallTarget+Inlining+NGEN
This PR (7771) - mean (702ms) : 668, 735
master - mean (670ms) : 655, 685
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 (7771) - mean (194ms) : 189, 199
master - mean (194ms) : 189, 198
section Bailout
This PR (7771) - mean (197ms) : 193, 202
master - mean (196ms) : 194, 199
section CallTarget+Inlining+NGEN
This PR (7771) - mean (1,186ms) : 1113, 1258
master - mean (1,172ms) : 1104, 1241
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 (7771) - mean (281ms) : 272, 290
master - mean (278ms) : 273, 283
section Bailout
This PR (7771) - mean (283ms) : 274, 291
master - mean (279ms) : 272, 286
section CallTarget+Inlining+NGEN
This PR (7771) - mean (963ms) : 924, 1003
master - mean (955ms) : 917, 993
HttpMessageHandler (.NET 6)gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7771) - mean (274ms) : 261, 287
master - mean (269ms) : 265, 273
section Bailout
This PR (7771) - mean (274ms) : 263, 285
master - mean (270ms) : 266, 273
section CallTarget+Inlining+NGEN
This PR (7771) - mean (939ms) : 879, 998
master - mean (935ms) : 893, 977
HttpMessageHandler (.NET 8)gantt
title Execution time (ms) HttpMessageHandler (.NET 8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7771) - mean (270ms) : 265, 275
master - mean (269ms) : 264, 273
section Bailout
This PR (7771) - mean (270ms) : 265, 274
master - mean (269ms) : 266, 272
section CallTarget+Inlining+NGEN
This PR (7771) - mean (854ms) : 836, 871
master - mean (860ms) : 838, 882
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
BenchmarksBenchmarks Report for benchmark platform 🐌Benchmarks for #7771 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 - Slower
|
| Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack‑netcoreapp3.1 | 2.493 | 296,601.22 | 739,445.76 |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | RunWafRealisticBenchmark |
net6.0 | 396μs | 89.2ns | 345ns | 0 | 0 | 0 | 4.55 KB |
| master | RunWafRealisticBenchmark |
netcoreapp3.1 | 411μs | 163ns | 586ns | 0 | 0 | 0 | 4.48 KB |
| master | RunWafRealisticBenchmark |
net472 | 429μs | 90.6ns | 351ns | 0 | 0 | 0 | 4.66 KB |
| master | RunWafRealisticBenchmarkWithAttack |
net6.0 | 295μs | 84ns | 314ns | 0 | 0 | 0 | 2.24 KB |
| master | RunWafRealisticBenchmarkWithAttack |
netcoreapp3.1 | 297μs | 106ns | 409ns | 0 | 0 | 0 | 2.22 KB |
| master | RunWafRealisticBenchmarkWithAttack |
net472 | 314μs | 25.1ns | 93.8ns | 0 | 0 | 0 | 2.29 KB |
| #7771 | RunWafRealisticBenchmark |
net6.0 | 390μs | 34.3ns | 133ns | 0 | 0 | 0 | 4.56 KB |
| #7771 | RunWafRealisticBenchmark |
netcoreapp3.1 | 415μs | 153ns | 593ns | 0 | 0 | 0 | 4.48 KB |
| #7771 | RunWafRealisticBenchmark |
net472 | 437μs | 54.1ns | 209ns | 0 | 0 | 0 | 4.66 KB |
| #7771 | RunWafRealisticBenchmarkWithAttack |
net6.0 | 287μs | 65.5ns | 236ns | 0 | 0 | 0 | 2.24 KB |
| #7771 | RunWafRealisticBenchmarkWithAttack |
netcoreapp3.1 | 716μs | 6.75μs | 67.5μs | 0 | 0 | 0 | 2.22 KB |
| #7771 | RunWafRealisticBenchmarkWithAttack |
net472 | 316μs | 37.1ns | 134ns | 0 | 0 | 0 | 2.29 KB |
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.5μs | 62.5ns | 225ns | 0 | 0 | 0 | 14.52 KB |
| master | SendRequest |
netcoreapp3.1 | 73.6μs | 399ns | 2.15μs | 0 | 0 | 0 | 17.42 KB |
| master | SendRequest |
net472 | 0.00285ns | 0.00147ns | 0.00569ns | 0 | 0 | 0 | 0 b |
| #7771 | SendRequest |
net6.0 | 60.8μs | 41.4ns | 160ns | 0 | 0 | 0 | 14.52 KB |
| #7771 | SendRequest |
netcoreapp3.1 | 71.1μs | 96.7ns | 349ns | 0 | 0 | 0 | 17.42 KB |
| #7771 | SendRequest |
net472 | 0.00306ns | 0.00193ns | 0.00746ns | 0 | 0 | 0 | 0 b |
Benchmarks.Trace.CharSliceBenchmark - Same speed ✔️ Fewer allocations 🎉
Fewer allocations 🎉 in #7771
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice‑net472
85 B
73 B
-12 B
-14.12%
Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑net6.0
4 B
3 B
-1 B
-25.00%
Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑netcoreapp3.1
1 B
0 b
-1 B
-100.00%
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice‑net472 | 85 B | 73 B | -12 B | -14.12% |
| Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑net6.0 | 4 B | 3 B | -1 B | -25.00% |
| Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑netcoreapp3.1 | 1 B | 0 b | -1 B | -100.00% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | OriginalCharSlice |
net6.0 | 1.95ms | 169ns | 654ns | 0 | 0 | 0 | 640.01 KB |
| master | OriginalCharSlice |
netcoreapp3.1 | 2.11ms | 2.98μs | 10.8μs | 0 | 0 | 0 | 640 KB |
| master | OriginalCharSlice |
net472 | 2.69ms | 176ns | 681ns | 100 | 0 | 0 | 641.95 KB |
| master | OptimizedCharSlice |
net6.0 | 1.41ms | 551ns | 2.13μs | 0 | 0 | 0 | 2 B |
| master | OptimizedCharSlice |
netcoreapp3.1 | 1.79ms | 4.21μs | 16.3μs | 0 | 0 | 0 | 1 B |
| master | OptimizedCharSlice |
net472 | 2.07ms | 367ns | 1.32μs | 0 | 0 | 0 | 85 B |
| master | OptimizedCharSliceWithPool |
net6.0 | 856μs | 29ns | 109ns | 0 | 0 | 0 | 4 B |
| master | OptimizedCharSliceWithPool |
netcoreapp3.1 | 801μs | 71ns | 275ns | 0 | 0 | 0 | 1 B |
| master | OptimizedCharSliceWithPool |
net472 | 1.18ms | 110ns | 427ns | 0 | 0 | 0 | 48 B |
| #7771 | OriginalCharSlice |
net6.0 | 1.91ms | 4.14μs | 15.5μs | 0 | 0 | 0 | 640 KB |
| #7771 | OriginalCharSlice |
netcoreapp3.1 | 2.11ms | 5.34μs | 20μs | 0 | 0 | 0 | 640 KB |
| #7771 | OriginalCharSlice |
net472 | 2.71ms | 102ns | 394ns | 100 | 0 | 0 | 641.95 KB |
| #7771 | OptimizedCharSlice |
net6.0 | 1.36ms | 197ns | 765ns | 0 | 0 | 0 | 2 B |
| #7771 | OptimizedCharSlice |
netcoreapp3.1 | 1.73ms | 839ns | 3.25μs | 0 | 0 | 0 | 1 B |
| #7771 | OptimizedCharSlice |
net472 | 1.94ms | 287ns | 1.11μs | 0 | 0 | 0 | 73 B |
| #7771 | OptimizedCharSliceWithPool |
net6.0 | 851μs | 15.9ns | 59.6ns | 0 | 0 | 0 | 3 B |
| #7771 | OptimizedCharSliceWithPool |
netcoreapp3.1 | 823μs | 99.7ns | 386ns | 0 | 0 | 0 | 0 b |
| #7771 | OptimizedCharSliceWithPool |
net472 | 1.16ms | 53ns | 198ns | 0 | 0 | 0 | 48 B |
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #7771
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑netcoreapp3.1
1.204
747,365.42
620,831.88
bimodal
| Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑netcoreapp3.1 | 1.204 | 747,365.42 | 620,831.88 | bimodal |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | WriteAndFlushEnrichedTraces |
net6.0 | 698μs | 3.39μs | 13.6μs | 0 | 0 | 0 | 41.63 KB |
| master | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 730μs | 4.23μs | 37.6μs | 0 | 0 | 0 | 41.93 KB |
| master | WriteAndFlushEnrichedTraces |
net472 | 884μs | 4.04μs | 15.6μs | 8.33 | 0 | 0 | 56.12 KB |
| #7771 | WriteAndFlushEnrichedTraces |
net6.0 | 680μs | 282ns | 1.09μs | 0 | 0 | 0 | 41.67 KB |
| #7771 | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 623μs | 1.7μs | 6.13μs | 0 | 0 | 0 | 41.97 KB |
| #7771 | WriteAndFlushEnrichedTraces |
net472 | 838μs | 3.29μs | 12.7μs | 7.81 | 0 | 0 | 55.97 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 | 3.92ns | 15.2ns | 0 | 0 | 0 | 1.02 KB |
| master | ExecuteNonQuery |
netcoreapp3.1 | 2.52μs | 11.9ns | 46.3ns | 0 | 0 | 0 | 1.02 KB |
| master | ExecuteNonQuery |
net472 | 2.9μs | 2ns | 7.48ns | 0.145 | 0.0145 | 0 | 987 B |
| #7771 | ExecuteNonQuery |
net6.0 | 1.91μs | 5.85ns | 22.7ns | 0 | 0 | 0 | 1.02 KB |
| #7771 | ExecuteNonQuery |
netcoreapp3.1 | 2.59μs | 9.81ns | 36.7ns | 0 | 0 | 0 | 1.02 KB |
| #7771 | ExecuteNonQuery |
net472 | 2.87μs | 2.09ns | 8.1ns | 0.144 | 0.0144 | 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.7μs | 2.3ns | 8.93ns | 0 | 0 | 0 | 1.03 KB |
| master | CallElasticsearch |
netcoreapp3.1 | 2.25μs | 7.91ns | 30.6ns | 0 | 0 | 0 | 1.03 KB |
| master | CallElasticsearch |
net472 | 3.58μs | 5.55ns | 21.5ns | 0.159 | 0 | 0 | 1.04 KB |
| master | CallElasticsearchAsync |
net6.0 | 1.87μs | 7.49ns | 29ns | 0 | 0 | 0 | 1.01 KB |
| master | CallElasticsearchAsync |
netcoreapp3.1 | 2.33μs | 11ns | 42.6ns | 0 | 0 | 0 | 1.08 KB |
| master | CallElasticsearchAsync |
net472 | 3.68μs | 4.81ns | 18.6ns | 0.165 | 0 | 0 | 1.1 KB |
| #7771 | CallElasticsearch |
net6.0 | 1.68μs | 7.62ns | 29.5ns | 0 | 0 | 0 | 1.03 KB |
| #7771 | CallElasticsearch |
netcoreapp3.1 | 2.22μs | 10.4ns | 43ns | 0 | 0 | 0 | 1.03 KB |
| #7771 | CallElasticsearch |
net472 | 3.76μs | 1.81ns | 7.03ns | 0.15 | 0 | 0 | 1.04 KB |
| #7771 | CallElasticsearchAsync |
net6.0 | 1.93μs | 4.42ns | 17.1ns | 0 | 0 | 0 | 1.01 KB |
| #7771 | CallElasticsearchAsync |
netcoreapp3.1 | 2.34μs | 11.6ns | 49.4ns | 0 | 0 | 0 | 1.08 KB |
| #7771 | CallElasticsearchAsync |
net472 | 3.72μs | 1.11ns | 4.02ns | 0.168 | 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.85μs | 3.74ns | 14.5ns | 0 | 0 | 0 | 952 B |
| master | ExecuteAsync |
netcoreapp3.1 | 2.36μs | 8.18ns | 30.6ns | 0 | 0 | 0 | 952 B |
| master | ExecuteAsync |
net472 | 2.54μs | 1.53ns | 5.92ns | 0.141 | 0 | 0 | 915 B |
| #7771 | ExecuteAsync |
net6.0 | 1.87μs | 5.84ns | 21.8ns | 0 | 0 | 0 | 952 B |
| #7771 | ExecuteAsync |
netcoreapp3.1 | 2.54μs | 12.9ns | 56.3ns | 0 | 0 | 0 | 952 B |
| #7771 | ExecuteAsync |
net472 | 2.54μs | 0.916ns | 3.55ns | 0.14 | 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.86μs | 7.22ns | 27.9ns | 0 | 0 | 0 | 2.36 KB |
| master | SendAsync |
netcoreapp3.1 | 8.6μs | 18.5ns | 71.7ns | 0 | 0 | 0 | 2.9 KB |
| master | SendAsync |
net472 | 12.1μs | 8.1ns | 31.4ns | 0.484 | 0 | 0 | 3.18 KB |
| #7771 | SendAsync |
net6.0 | 7.01μs | 4.66ns | 16.8ns | 0 | 0 | 0 | 2.36 KB |
| #7771 | SendAsync |
netcoreapp3.1 | 8.7μs | 13ns | 48.6ns | 0 | 0 | 0 | 2.9 KB |
| #7771 | SendAsync |
net472 | 12.6μs | 16.4ns | 63.6ns | 0.501 | 0 | 0 | 3.18 KB |
Benchmarks.Trace.Iast.StringAspectsBenchmark - Faster 🎉 More allocations ⚠️
Faster 🎉 in #7771
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0
1.167
512,950.00
439,700.00
More allocations ⚠️ in #7771
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net6.0
43.1 KB
45.32 KB
2.22 KB
5.14%
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑netcoreapp3.1
272.36 KB
275.16 KB
2.8 KB
1.03%
Fewer allocations 🎉 in #7771
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0
257.82 KB
248.54 KB
-9.28 KB
-3.60%
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑netcoreapp3.1
46.1 KB
43.5 KB
-2.6 KB
-5.64%
| Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0 | 1.167 | 512,950.00 | 439,700.00 |
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net6.0 | 43.1 KB | 45.32 KB | 2.22 KB | 5.14% |
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑netcoreapp3.1 | 272.36 KB | 275.16 KB | 2.8 KB | 1.03% |
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0 | 257.82 KB | 248.54 KB | -9.28 KB | -3.60% |
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑netcoreapp3.1 | 46.1 KB | 43.5 KB | -2.6 KB | -5.64% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StringConcatBenchmark |
net6.0 | 46.5μs | 519ns | 4.96μs | 0 | 0 | 0 | 43.1 KB |
| master | StringConcatBenchmark |
netcoreapp3.1 | 49.6μs | 277ns | 2.36μs | 0 | 0 | 0 | 46.1 KB |
| master | StringConcatBenchmark |
net472 | 58μs | 146ns | 545ns | 0 | 0 | 0 | 57.34 KB |
| master | StringConcatAspectBenchmark |
net6.0 | 514μs | 1.64μs | 5.68μs | 0 | 0 | 0 | 257.82 KB |
| master | StringConcatAspectBenchmark |
netcoreapp3.1 | 519μs | 1.2μs | 4.34μs | 0 | 0 | 0 | 272.36 KB |
| master | StringConcatAspectBenchmark |
net472 | 404μs | 2μs | 16.5μs | 0 | 0 | 0 | 278.53 KB |
| #7771 | StringConcatBenchmark |
net6.0 | 42.1μs | 232ns | 1.39μs | 0 | 0 | 0 | 45.32 KB |
| #7771 | StringConcatBenchmark |
netcoreapp3.1 | 46.4μs | 232ns | 1.01μs | 0 | 0 | 0 | 43.5 KB |
| #7771 | StringConcatBenchmark |
net472 | 57.8μs | 175ns | 654ns | 0 | 0 | 0 | 57.34 KB |
| #7771 | StringConcatAspectBenchmark |
net6.0 | 440μs | 1.3μs | 4.69μs | 0 | 0 | 0 | 248.54 KB |
| #7771 | StringConcatAspectBenchmark |
netcoreapp3.1 | 523μs | 2.44μs | 9.78μs | 0 | 0 | 0 | 275.16 KB |
| #7771 | StringConcatAspectBenchmark |
net472 | 400μs | 2.28μs | 17.1μ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.63μs | 12.4ns | 49.7ns | 0 | 0 | 0 | 1.7 KB |
| master | EnrichedLog |
netcoreapp3.1 | 3.62μs | 16.7ns | 64.5ns | 0 | 0 | 0 | 1.7 KB |
| master | EnrichedLog |
net472 | 4.12μs | 4.34ns | 16.8ns | 0.244 | 0 | 0 | 1.64 KB |
| #7771 | EnrichedLog |
net6.0 | 2.76μs | 2.64ns | 10.2ns | 0 | 0 | 0 | 1.7 KB |
| #7771 | EnrichedLog |
netcoreapp3.1 | 3.61μs | 18.6ns | 83.2ns | 0 | 0 | 0 | 1.7 KB |
| #7771 | EnrichedLog |
net472 | 4μs | 4.87ns | 18.8ns | 0.258 | 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 | 127μs | 257ns | 890ns | 0 | 0 | 0 | 4.31 KB |
| master | EnrichedLog |
netcoreapp3.1 | 133μs | 165ns | 596ns | 0 | 0 | 0 | 4.31 KB |
| master | EnrichedLog |
net472 | 173μs | 284ns | 1.1μs | 0 | 0 | 0 | 4.52 KB |
| #7771 | EnrichedLog |
net6.0 | 125μs | 97.2ns | 364ns | 0 | 0 | 0 | 4.31 KB |
| #7771 | EnrichedLog |
netcoreapp3.1 | 131μs | 197ns | 762ns | 0 | 0 | 0 | 4.31 KB |
| #7771 | EnrichedLog |
net472 | 171μs | 184ns | 713ns | 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 | 5.13μs | 17.6ns | 68.1ns | 0 | 0 | 0 | 2.26 KB |
| master | EnrichedLog |
netcoreapp3.1 | 6.75μs | 15.4ns | 59.5ns | 0 | 0 | 0 | 2.26 KB |
| master | EnrichedLog |
net472 | 7.51μs | 8.31ns | 32.2ns | 0.3 | 0 | 0 | 2.08 KB |
| #7771 | EnrichedLog |
net6.0 | 5.03μs | 4.87ns | 18.2ns | 0 | 0 | 0 | 2.26 KB |
| #7771 | EnrichedLog |
netcoreapp3.1 | 7.07μs | 14.9ns | 57.6ns | 0 | 0 | 0 | 2.26 KB |
| #7771 | EnrichedLog |
net472 | 7.52μs | 6.89ns | 26.7ns | 0.301 | 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.98μs | 0.673ns | 2.61ns | 0 | 0 | 0 | 1.2 KB |
| master | SendReceive |
netcoreapp3.1 | 2.65μs | 11.8ns | 45.6ns | 0 | 0 | 0 | 1.2 KB |
| master | SendReceive |
net472 | 3.15μs | 6.36ns | 24.6ns | 0.187 | 0 | 0 | 1.2 KB |
| #7771 | SendReceive |
net6.0 | 2.03μs | 1.09ns | 4.24ns | 0 | 0 | 0 | 1.2 KB |
| #7771 | SendReceive |
netcoreapp3.1 | 2.71μs | 12.9ns | 50ns | 0 | 0 | 0 | 1.2 KB |
| #7771 | SendReceive |
net472 | 3.09μs | 1.38ns | 5.36ns | 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.21μs | 2.86ns | 11.1ns | 0 | 0 | 0 | 1.58 KB |
| master | EnrichedLog |
netcoreapp3.1 | 5.49μs | 16.8ns | 65ns | 0 | 0 | 0 | 1.63 KB |
| master | EnrichedLog |
net472 | 6.45μs | 7.3ns | 28.3ns | 0.292 | 0 | 0 | 2.03 KB |
| #7771 | EnrichedLog |
net6.0 | 4.22μs | 4.76ns | 17.2ns | 0 | 0 | 0 | 1.58 KB |
| #7771 | EnrichedLog |
netcoreapp3.1 | 5.64μs | 19.1ns | 74.1ns | 0 | 0 | 0 | 1.63 KB |
| #7771 | EnrichedLog |
net472 | 6.56μs | 6.6ns | 24.7ns | 0.295 | 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 | 790ns | 4.27ns | 22.2ns | 0 | 0 | 0 | 576 B |
| master | StartFinishSpan |
netcoreapp3.1 | 965ns | 5.37ns | 32.7ns | 0 | 0 | 0 | 576 B |
| master | StartFinishSpan |
net472 | 921ns | 0.498ns | 1.93ns | 0.088 | 0 | 0 | 578 B |
| master | StartFinishScope |
net6.0 | 924ns | 4.61ns | 20.1ns | 0 | 0 | 0 | 696 B |
| master | StartFinishScope |
netcoreapp3.1 | 1.18μs | 6.09ns | 30.5ns | 0 | 0 | 0 | 696 B |
| master | StartFinishScope |
net472 | 1.12μs | 0.542ns | 2.1ns | 0.1 | 0 | 0 | 658 B |
| #7771 | StartFinishSpan |
net6.0 | 809ns | 0.496ns | 1.79ns | 0 | 0 | 0 | 576 B |
| #7771 | StartFinishSpan |
netcoreapp3.1 | 967ns | 4.61ns | 17.9ns | 0 | 0 | 0 | 576 B |
| #7771 | StartFinishSpan |
net472 | 934ns | 0.951ns | 3.68ns | 0.089 | 0 | 0 | 578 B |
| #7771 | StartFinishScope |
net6.0 | 922ns | 4.7ns | 21.5ns | 0 | 0 | 0 | 696 B |
| #7771 | StartFinishScope |
netcoreapp3.1 | 1.21μs | 5.17ns | 20ns | 0 | 0 | 0 | 696 B |
| #7771 | StartFinishScope |
net472 | 1.13μs | 0.644ns | 2.49ns | 0.102 | 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.11μs | 1.63ns | 6.32ns | 0 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
netcoreapp3.1 | 1.45μs | 5ns | 18.7ns | 0 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
net472 | 1.47μs | 1.06ns | 4.1ns | 0.102 | 0 | 0 | 658 B |
| #7771 | RunOnMethodBegin |
net6.0 | 1.06μs | 5.06ns | 20.9ns | 0 | 0 | 0 | 696 B |
| #7771 | RunOnMethodBegin |
netcoreapp3.1 | 1.45μs | 6.4ns | 24.8ns | 0 | 0 | 0 | 696 B |
| #7771 | RunOnMethodBegin |
net472 | 1.46μs | 1.55ns | 5.8ns | 0.105 | 0 | 0 | 658 B |
andrewlock
left a comment
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.
Thanks!
| // Small delay to ensure the test has time to read the output before the process exits | ||
| Thread.Sleep(100); |
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.
nit: I don't think we should add this, it just slows down dozens of tests without any real benefit IMO
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.
I was not sure about it. It's a safety measure but it will also affect performance. I will remove it and if we see any case where the console app ends before the test is actually being able to read the output from it, we can add it.
Summary of changes
We are getting the following error in master:
The CI failure was a race condition in the test cleanup code:
Thce fix:
Reason for change
Implementation details
Test coverage
Other details