-
Notifications
You must be signed in to change notification settings - Fork 142
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
[APM] Exclude windows only definitions from non windows dlls #6270
base: master
Are you sure you want to change the base?
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Datadog ReportBranch report: ❌ 2 Failed (2 Known Flaky), 465596 Passed, 3586 Skipped, 32h 26m 6.99s Total Time ❌ Failed Tests (2)
|
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 (6270) - mean (72ms) : 65, 79
. : milestone, 72,
master - mean (72ms) : 62, 82
. : milestone, 72,
section CallTarget+Inlining+NGEN
This PR (6270) - mean (982ms) : 961, 1003
. : milestone, 982,
master - mean (1,106ms) : 1090, 1122
. : milestone, 1106,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6270) - mean (109ms) : 105, 113
. : milestone, 109,
master - mean (109ms) : 106, 111
. : milestone, 109,
section CallTarget+Inlining+NGEN
This PR (6270) - mean (690ms) : 668, 713
. : milestone, 690,
master - mean (766ms) : 751, 781
. : milestone, 766,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6270) - mean (92ms) : 89, 95
. : milestone, 92,
master - mean (92ms) : 90, 94
. : milestone, 92,
section CallTarget+Inlining+NGEN
This PR (6270) - mean (637ms) : 617, 658
. : milestone, 637,
master - mean (728ms) : 710, 745
. : milestone, 728,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6270) - mean (191ms) : 185, 196
. : milestone, 191,
master - mean (191ms) : 182, 200
. : milestone, 191,
section CallTarget+Inlining+NGEN
This PR (6270) - mean (1,096ms) : 1067, 1124
. : milestone, 1096,
master - mean (1,215ms) : 1189, 1241
. : milestone, 1215,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6270) - mean (276ms) : 272, 281
. : milestone, 276,
master - mean (277ms) : 271, 284
. : milestone, 277,
section CallTarget+Inlining+NGEN
This PR (6270) - mean (877ms) : 851, 903
. : milestone, 877,
master - mean (943ms) : 927, 959
. : milestone, 943,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6270) - mean (265ms) : 261, 269
. : milestone, 265,
master - mean (265ms) : 262, 269
. : milestone, 265,
section CallTarget+Inlining+NGEN
This PR (6270) - mean (855ms) : 827, 883
. : milestone, 855,
master - mean (927ms) : 910, 944
. : milestone, 927,
|
Benchmarks Report for appsec 🐌Benchmarks for #6270 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‑net6.0 | 253.95 KB | 265.42 KB | 11.47 KB | 4.52% |
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net472 | 272.91 KB | 278.53 KB | 5.62 KB | 2.06% |
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑netcoreapp3.1 | 255.27 KB | 252.41 KB | -2.86 KB | -1.12% |
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net472 | 60.49 KB | 59.07 KB | -1.42 KB | -2.34% |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StringConcatBenchmark |
net6.0 | 52.9μs | 209ns | 782ns | 0 | 0 | 0 | 43.44 KB |
master | StringConcatBenchmark |
netcoreapp3.1 | 54.2μs | 287ns | 1.38μs | 0 | 0 | 0 | 42.64 KB |
master | StringConcatBenchmark |
net472 | 38μs | 165ns | 616ns | 0 | 0 | 0 | 60.49 KB |
master | StringConcatAspectBenchmark |
net6.0 | 295μs | 4.71μs | 43.7μs | 0 | 0 | 0 | 253.95 KB |
master | StringConcatAspectBenchmark |
netcoreapp3.1 | 354μs | 1.97μs | 12.1μs | 0 | 0 | 0 | 255.27 KB |
master | StringConcatAspectBenchmark |
net472 | 278μs | 6.14μs | 58.9μs | 0 | 0 | 0 | 272.91 KB |
#6270 | StringConcatBenchmark |
net6.0 | 52.7μs | 275ns | 1.29μs | 0 | 0 | 0 | 43.44 KB |
#6270 | StringConcatBenchmark |
netcoreapp3.1 | 62.4μs | 777ns | 7.65μs | 0 | 0 | 0 | 42.64 KB |
#6270 | StringConcatBenchmark |
net472 | 37.3μs | 80.7ns | 291ns | 0 | 0 | 0 | 59.07 KB |
#6270 | StringConcatAspectBenchmark |
net6.0 | 325μs | 1.84μs | 12.2μs | 0 | 0 | 0 | 265.42 KB |
#6270 | StringConcatAspectBenchmark |
netcoreapp3.1 | 333μs | 1.72μs | 9.75μs | 0 | 0 | 0 | 252.41 KB |
#6270 | StringConcatAspectBenchmark |
net472 | 243μs | 1.19μs | 5.03μs | 0 | 0 | 0 | 278.53 KB |
Benchmarks Report for tracer 🐌Benchmarks for #6270 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 - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SpanBenchmark - Slower
|
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net472 | 1.175 | 599.32 | 704.11 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 398ns | 0.624ns | 2.42ns | 0.008 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 612ns | 0.604ns | 2.26ns | 0.00772 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 599ns | 0.633ns | 2.37ns | 0.0917 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 482ns | 0.756ns | 2.93ns | 0.00971 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 759ns | 0.973ns | 3.77ns | 0.00945 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 919ns | 1.84ns | 7.11ns | 0.104 | 0 | 0 | 658 B |
#6270 | StartFinishSpan |
net6.0 | 391ns | 0.512ns | 1.98ns | 0.008 | 0 | 0 | 576 B |
#6270 | StartFinishSpan |
netcoreapp3.1 | 585ns | 1.22ns | 4.71ns | 0.00778 | 0 | 0 | 576 B |
#6270 | StartFinishSpan |
net472 | 702ns | 1.71ns | 6.64ns | 0.0915 | 0 | 0 | 578 B |
#6270 | StartFinishScope |
net6.0 | 489ns | 0.41ns | 1.59ns | 0.00975 | 0 | 0 | 696 B |
#6270 | StartFinishScope |
netcoreapp3.1 | 756ns | 1.42ns | 5.49ns | 0.00935 | 0 | 0 | 696 B |
#6270 | StartFinishScope |
net472 | 934ns | 1.58ns | 6.14ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #6270
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑netcoreapp3.1
1.198
931.98
1,116.18
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑netcoreapp3.1 | 1.198 | 931.98 | 1,116.18 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 599ns | 0.34ns | 1.32ns | 0.00976 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 930ns | 1.45ns | 5.23ns | 0.00935 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.13μs | 2.19ns | 8.49ns | 0.104 | 0 | 0 | 658 B |
#6270 | RunOnMethodBegin |
net6.0 | 609ns | 1.17ns | 4.53ns | 0.00968 | 0 | 0 | 696 B |
#6270 | RunOnMethodBegin |
netcoreapp3.1 | 1.12μs | 1.93ns | 7.47ns | 0.00948 | 0 | 0 | 696 B |
#6270 | RunOnMethodBegin |
net472 | 1.19μs | 2.53ns | 9.81ns | 0.104 | 0 | 0 | 658 B |
17bc420
to
2277786
Compare
86827a9
to
6d649a3
Compare
Throughput/Crank Report ⚡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 (6270) (11.093M) : 0, 11093228
master (11.155M) : 0, 11154721
benchmarks/2.9.0 (11.033M) : 0, 11032866
section Automatic
This PR (6270) (7.334M) : 0, 7333535
master (7.297M) : 0, 7297200
benchmarks/2.9.0 (7.786M) : 0, 7785853
section Trace stats
master (7.684M) : 0, 7684145
section Manual
master (11.069M) : 0, 11068901
section Manual + Automatic
This PR (6270) (6.833M) : 0, 6832574
master (6.786M) : 0, 6785523
section DD_TRACE_ENABLED=0
master (10.249M) : 0, 10249493
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6270) (9.620M) : 0, 9620345
master (9.602M) : 0, 9601778
benchmarks/2.9.0 (9.495M) : 0, 9494821
section Automatic
This PR (6270) (6.284M) : 0, 6284131
master (6.210M) : 0, 6209560
section Trace stats
master (6.728M) : 0, 6728350
section Manual
master (9.437M) : 0, 9436743
section Manual + Automatic
This PR (6270) (5.858M) : 0, 5858383
master (5.810M) : 0, 5809535
section DD_TRACE_ENABLED=0
master (8.705M) : 0, 8705485
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6270) (10.209M) : 0, 10208510
master (10.329M) : 0, 10328534
benchmarks/2.9.0 (10.020M) : 0, 10019592
section Automatic
This PR (6270) (6.638M) : 0, 6637878
master (6.617M) : 0, 6616689
benchmarks/2.9.0 (7.255M) : 0, 7255257
section Trace stats
master (7.166M) : 0, 7165623
section Manual
master (10.093M) : 0, 10093300
section Manual + Automatic
This PR (6270) (6.227M) : 0, 6227240
master (6.311M) : 0, 6310782
section DD_TRACE_ENABLED=0
master (9.459M) : 0, 9459125
|
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.
LGTM!
6d649a3
to
78fe837
Compare
cb9c565
to
fa44bc2
Compare
14e921b
to
8c9d6b8
Compare
df76b2f
to
d1bb046
Compare
239b853
to
2d3d5f9
Compare
d1bb046
to
b0d7fec
Compare
2d3d5f9
to
05ae16a
Compare
b0d7fec
to
7c463e8
Compare
05ae16a
to
4ec56a4
Compare
7c463e8
to
b818a93
Compare
4ec56a4
to
002f3bf
Compare
b818a93
to
1c302eb
Compare
6f9b6c4
to
65e137b
Compare
3075076
to
085dfa9
Compare
3c882e7
to
5b64e6c
Compare
02b9bdf
to
7effd69
Compare
5b64e6c
to
317c444
Compare
7effd69
to
35ca88a
Compare
317c444
to
a9b8bb3
Compare
aa66464
to
1a55d8c
Compare
Summary of changes
Remove windows only definitions from non windows dlls
Reason for change
Defs take up space. Removing non needed ones will help keep package size as low as possible
Implementation details
Surround windows only defs in #if _WIN32 clauses
Test coverage
Other details