-
Notifications
You must be signed in to change notification settings - Fork 143
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
[IAST] Propagation tests reorg #6487
base: master
Are you sure you want to change the base?
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 (6487) - mean (68ms) : 66, 70
. : milestone, 68,
master - mean (68ms) : 65, 71
. : milestone, 68,
section CallTarget+Inlining+NGEN
This PR (6487) - mean (976ms) : 955, 996
. : milestone, 976,
master - mean (979ms) : 954, 1003
. : milestone, 979,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6487) - mean (107ms) : 105, 109
. : milestone, 107,
master - mean (107ms) : 105, 109
. : milestone, 107,
section CallTarget+Inlining+NGEN
This PR (6487) - mean (679ms) : 658, 701
. : milestone, 679,
master - mean (678ms) : 663, 693
. : milestone, 678,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6487) - mean (91ms) : 88, 94
. : milestone, 91,
master - mean (91ms) : 89, 93
. : milestone, 91,
section CallTarget+Inlining+NGEN
This PR (6487) - mean (632ms) : 617, 647
. : milestone, 632,
master - mean (633ms) : 618, 647
. : milestone, 633,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6487) - mean (193ms) : 189, 196
. : milestone, 193,
master - mean (195ms) : 190, 200
. : milestone, 195,
section CallTarget+Inlining+NGEN
This PR (6487) - mean (1,100ms) : 1070, 1129
. : milestone, 1100,
master - mean (1,099ms) : 1071, 1127
. : milestone, 1099,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6487) - mean (278ms) : 274, 282
. : milestone, 278,
master - mean (278ms) : 273, 283
. : milestone, 278,
section CallTarget+Inlining+NGEN
This PR (6487) - mean (870ms) : 844, 897
. : milestone, 870,
master - mean (876ms) : 839, 912
. : milestone, 876,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6487) - mean (266ms) : 261, 271
. : milestone, 266,
master - mean (268ms) : 263, 272
. : milestone, 268,
section CallTarget+Inlining+NGEN
This PR (6487) - mean (855ms) : 820, 890
. : milestone, 855,
master - mean (853ms) : 809, 896
. : milestone, 853,
|
Datadog ReportBranch report: ✅ 0 Failed, 454874 Passed, 2821 Skipped, 19h 37m 14.32s Total Time |
Benchmarks Report for tracer 🐌Benchmarks for #6487 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 - Faster 🎉 Same allocations ✔️
|
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 | 1.187 | 557.92 | 469.91 | |
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net472 | 1.162 | 742.85 | 639.35 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 431ns | 0.455ns | 1.76ns | 0.00811 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 593ns | 0.48ns | 1.79ns | 0.00793 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 743ns | 0.662ns | 2.48ns | 0.0915 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 558ns | 0.323ns | 1.25ns | 0.0097 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 679ns | 0.428ns | 1.6ns | 0.00946 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 872ns | 1.11ns | 4.31ns | 0.104 | 0 | 0 | 658 B |
#6487 | StartFinishSpan |
net6.0 | 406ns | 0.21ns | 0.815ns | 0.00801 | 0 | 0 | 576 B |
#6487 | StartFinishSpan |
netcoreapp3.1 | 638ns | 0.56ns | 2.17ns | 0.00775 | 0 | 0 | 576 B |
#6487 | StartFinishSpan |
net472 | 640ns | 0.278ns | 1.08ns | 0.0917 | 0 | 0 | 578 B |
#6487 | StartFinishScope |
net6.0 | 470ns | 0.286ns | 1.11ns | 0.00984 | 0 | 0 | 696 B |
#6487 | StartFinishScope |
netcoreapp3.1 | 674ns | 0.421ns | 1.63ns | 0.00946 | 0 | 0 | 696 B |
#6487 | StartFinishScope |
net472 | 899ns | 0.717ns | 2.78ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #6487
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0
1.151
582.30
670.34
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0 | 1.151 | 582.30 | 670.34 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 582ns | 0.426ns | 1.65ns | 0.00985 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 863ns | 0.584ns | 2.26ns | 0.00926 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.1μs | 1.16ns | 4.48ns | 0.104 | 0 | 0 | 658 B |
#6487 | RunOnMethodBegin |
net6.0 | 670ns | 0.388ns | 1.5ns | 0.00975 | 0 | 0 | 696 B |
#6487 | RunOnMethodBegin |
netcoreapp3.1 | 921ns | 0.998ns | 3.87ns | 0.00965 | 0 | 0 | 696 B |
#6487 | RunOnMethodBegin |
net472 | 1.08μs | 0.683ns | 2.64ns | 0.104 | 0 | 0 | 658 B |
Summary of changes
Moved propagation tests to their right folder and namespace in instrumented tests
Reason for change
Namespaces were not standard and tests location made them difficult to locate
Implementation details
Moved propagation tests from Vulnerabilities to Propagation folder and namespace
Test coverage
Other details