-
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
Change CopyToOutputDirectory="Always"
to CopyToOutputDirectory="PreserveNewest"
#6493
Conversation
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 (6493) - mean (69ms) : 65, 72
. : milestone, 69,
master - mean (69ms) : 65, 73
. : milestone, 69,
section CallTarget+Inlining+NGEN
This PR (6493) - mean (979ms) : 956, 1002
. : milestone, 979,
master - mean (978ms) : 953, 1003
. : milestone, 978,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6493) - mean (107ms) : 104, 109
. : milestone, 107,
master - mean (108ms) : 106, 110
. : milestone, 108,
section CallTarget+Inlining+NGEN
This PR (6493) - mean (680ms) : 661, 698
. : milestone, 680,
master - mean (679ms) : 664, 694
. : milestone, 679,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6493) - mean (91ms) : 89, 93
. : milestone, 91,
master - mean (91ms) : 89, 93
. : milestone, 91,
section CallTarget+Inlining+NGEN
This PR (6493) - mean (635ms) : 619, 651
. : milestone, 635,
master - mean (632ms) : 615, 649
. : milestone, 632,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6493) - mean (193ms) : 189, 198
. : milestone, 193,
master - mean (194ms) : 190, 198
. : milestone, 194,
section CallTarget+Inlining+NGEN
This PR (6493) - mean (1,104ms) : 1072, 1137
. : milestone, 1104,
master - mean (1,104ms) : 1073, 1134
. : milestone, 1104,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6493) - mean (277ms) : 271, 284
. : milestone, 277,
master - mean (280ms) : 275, 284
. : milestone, 280,
section CallTarget+Inlining+NGEN
This PR (6493) - mean (870ms) : 845, 894
. : milestone, 870,
master - mean (874ms) : 846, 901
. : milestone, 874,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6493) - mean (267ms) : 262, 271
. : milestone, 267,
master - mean (267ms) : 263, 271
. : milestone, 267,
section CallTarget+Inlining+NGEN
This PR (6493) - mean (852ms) : 814, 891
. : milestone, 852,
master - mean (856ms) : 817, 895
. : milestone, 856,
|
Benchmarks Report for appsec 🐌Benchmarks for #6493 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 - Faster 🎉 More allocations
|
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net6.0 | 1.158 | 60,450.00 | 52,200.00 | several? |
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0 | 253.63 KB | 265.4 KB | 11.77 KB | 4.64% |
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑netcoreapp3.1 | 252.01 KB | 253.77 KB | 1.76 KB | 0.70% |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StringConcatBenchmark |
net6.0 | 58.8μs | 526ns | 4.82μs | 0 | 0 | 0 | 43.44 KB |
master | StringConcatBenchmark |
netcoreapp3.1 | 62μs | 859ns | 8.59μs | 0 | 0 | 0 | 42.64 KB |
master | StringConcatBenchmark |
net472 | 37.7μs | 90.3ns | 325ns | 0 | 0 | 0 | 59.22 KB |
master | StringConcatAspectBenchmark |
net6.0 | 306μs | 1.63μs | 8.65μs | 0 | 0 | 0 | 253.63 KB |
master | StringConcatAspectBenchmark |
netcoreapp3.1 | 332μs | 1.8μs | 11.8μs | 0 | 0 | 0 | 252.01 KB |
master | StringConcatAspectBenchmark |
net472 | 291μs | 5.81μs | 56μs | 0 | 0 | 0 | 278.53 KB |
#6493 | StringConcatBenchmark |
net6.0 | 52.1μs | 247ns | 1.13μs | 0 | 0 | 0 | 43.44 KB |
#6493 | StringConcatBenchmark |
netcoreapp3.1 | 61μs | 759ns | 7.55μs | 0 | 0 | 0 | 42.64 KB |
#6493 | StringConcatBenchmark |
net472 | 37.5μs | 133ns | 462ns | 0 | 0 | 0 | 59.07 KB |
#6493 | StringConcatAspectBenchmark |
net6.0 | 324μs | 1.81μs | 11.3μs | 0 | 0 | 0 | 265.4 KB |
#6493 | StringConcatAspectBenchmark |
netcoreapp3.1 | 338μs | 1.57μs | 5.88μs | 0 | 0 | 0 | 253.77 KB |
#6493 | StringConcatAspectBenchmark |
net472 | 290μs | 6.35μs | 63.5μs | 0 | 0 | 0 | 278.53 KB |
Benchmarks Report for tracer 🐌Benchmarks for #6493 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.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.ILoggerBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.RedisBenchmark - Faster 🎉 Same allocations ✔️
|
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.RedisBenchmark.SendReceive‑net6.0 | 1.160 | 1,485.10 | 1,280.75 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | SendReceive |
net6.0 | 1.48μs | 0.398ns | 1.49ns | 0.0163 | 0 | 0 | 1.14 KB |
master | SendReceive |
netcoreapp3.1 | 1.78μs | 1.02ns | 3.93ns | 0.0156 | 0 | 0 | 1.14 KB |
master | SendReceive |
net472 | 2.16μs | 1.14ns | 4.41ns | 0.183 | 0 | 0 | 1.16 KB |
#6493 | SendReceive |
net6.0 | 1.28μs | 0.684ns | 2.65ns | 0.016 | 0 | 0 | 1.14 KB |
#6493 | SendReceive |
netcoreapp3.1 | 1.7μs | 0.641ns | 2.48ns | 0.0157 | 0 | 0 | 1.14 KB |
#6493 | SendReceive |
net472 | 2.12μs | 1.26ns | 4.87ns | 0.183 | 0 | 0 | 1.16 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.7μs | 2.6ns | 9.74ns | 0.0216 | 0 | 0 | 1.6 KB |
master | EnrichedLog |
netcoreapp3.1 | 3.78μs | 1.5ns | 5.79ns | 0.0209 | 0 | 0 | 1.65 KB |
master | EnrichedLog |
net472 | 4.37μs | 2.81ns | 10.9ns | 0.322 | 0 | 0 | 2.04 KB |
#6493 | EnrichedLog |
net6.0 | 2.73μs | 1.06ns | 4.1ns | 0.022 | 0 | 0 | 1.6 KB |
#6493 | EnrichedLog |
netcoreapp3.1 | 3.87μs | 1.85ns | 7.17ns | 0.0213 | 0 | 0 | 1.65 KB |
#6493 | EnrichedLog |
net472 | 4.31μs | 2.96ns | 11.5ns | 0.323 | 0 | 0 | 2.04 KB |
Benchmarks.Trace.SpanBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #6493
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net472
1.153
924.31
801.96
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑netcoreapp3.1
1.125
750.96
667.52
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net472 | 1.153 | 924.31 | 801.96 | |
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑netcoreapp3.1 | 1.125 | 750.96 | 667.52 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 446ns | 0.354ns | 1.37ns | 0.00816 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 570ns | 0.269ns | 0.932ns | 0.00769 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 647ns | 0.369ns | 1.38ns | 0.0917 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 565ns | 0.46ns | 1.78ns | 0.00961 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 751ns | 0.736ns | 2.85ns | 0.00949 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 922ns | 1.57ns | 6.08ns | 0.104 | 0 | 0 | 658 B |
#6493 | StartFinishSpan |
net6.0 | 404ns | 0.161ns | 0.624ns | 0.0081 | 0 | 0 | 576 B |
#6493 | StartFinishSpan |
netcoreapp3.1 | 549ns | 0.208ns | 0.778ns | 0.00778 | 0 | 0 | 576 B |
#6493 | StartFinishSpan |
net472 | 627ns | 0.295ns | 1.14ns | 0.0915 | 0 | 0 | 578 B |
#6493 | StartFinishScope |
net6.0 | 526ns | 1.17ns | 4.52ns | 0.00987 | 0 | 0 | 696 B |
#6493 | StartFinishScope |
netcoreapp3.1 | 668ns | 0.765ns | 2.96ns | 0.00931 | 0 | 0 | 696 B |
#6493 | StartFinishScope |
net472 | 803ns | 0.67ns | 2.59ns | 0.105 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #6493
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0
1.127
662.60
587.77
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0 | 1.127 | 662.60 | 587.77 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 662ns | 0.418ns | 1.62ns | 0.00994 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 895ns | 0.898ns | 3.48ns | 0.00937 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.11μs | 0.934ns | 3.62ns | 0.105 | 0 | 0 | 658 B |
#6493 | RunOnMethodBegin |
net6.0 | 588ns | 0.363ns | 1.41ns | 0.00974 | 0 | 0 | 696 B |
#6493 | RunOnMethodBegin |
netcoreapp3.1 | 892ns | 0.354ns | 1.37ns | 0.00896 | 0 | 0 | 696 B |
#6493 | RunOnMethodBegin |
net472 | 1.07μs | 0.626ns | 2.42ns | 0.104 | 0 | 0 | 658 B |
Datadog ReportBranch report: ✅ 0 Failed, 236652 Passed, 3380 Skipped, 34h 27m 8.84s Total Time ⌛ Performance Regressions vs Default Branch (1)
|
Summary of changes
Change
CopyToOutputDirectory="Always"
toCopyToOutputDirectory="PreserveNewest"
Reason for change
You shouldn't use Always unless you really need to, as it slows things down, by forcing MSBuild to redo a bunch of work
Implementation details
Find and replace
Test coverage
If CI works, I'm happy enough. There's a slim chance some of these do need to be Always, but I doubt it...