-
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
Kevin/randomize tests 2 #6508
base: master
Are you sure you want to change the base?
Kevin/randomize tests 2 #6508
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 (6508) - mean (68ms) : 66, 71
. : milestone, 68,
master - mean (69ms) : 66, 71
. : milestone, 69,
section CallTarget+Inlining+NGEN
This PR (6508) - mean (981ms) : 958, 1004
. : milestone, 981,
master - mean (980ms) : 949, 1011
. : milestone, 980,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6508) - mean (108ms) : 105, 110
. : milestone, 108,
master - mean (108ms) : 106, 110
. : milestone, 108,
section CallTarget+Inlining+NGEN
This PR (6508) - mean (675ms) : 662, 689
. : milestone, 675,
master - mean (681ms) : 665, 697
. : milestone, 681,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6508) - mean (91ms) : 90, 93
. : milestone, 91,
master - mean (91ms) : 89, 93
. : milestone, 91,
section CallTarget+Inlining+NGEN
This PR (6508) - mean (630ms) : 610, 650
. : milestone, 630,
master - mean (636ms) : 618, 654
. : milestone, 636,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6508) - mean (194ms) : 189, 198
. : milestone, 194,
master - mean (195ms) : 189, 200
. : milestone, 195,
section CallTarget+Inlining+NGEN
This PR (6508) - mean (1,101ms) : 1078, 1124
. : milestone, 1101,
master - mean (1,105ms) : 1078, 1131
. : milestone, 1105,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6508) - mean (279ms) : 275, 283
. : milestone, 279,
master - mean (279ms) : 275, 283
. : milestone, 279,
section CallTarget+Inlining+NGEN
This PR (6508) - mean (872ms) : 845, 900
. : milestone, 872,
master - mean (875ms) : 850, 900
. : milestone, 875,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6508) - mean (267ms) : 264, 271
. : milestone, 267,
master - mean (268ms) : 264, 272
. : milestone, 268,
section CallTarget+Inlining+NGEN
This PR (6508) - mean (846ms) : 815, 877
. : milestone, 846,
master - mean (853ms) : 824, 881
. : milestone, 853,
|
Datadog ReportBranch report: ❌ 2 Failed (0 Known Flaky), 584737 Passed, 4096 Skipped, 36h 18m 12.35s Total Time ❌ Failed Tests (2)
New Flaky Tests (1)
|
Benchmarks Report for appsec 🐌Benchmarks for #6508 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 - Slower
|
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody‑netcoreapp3.1 | 1.256 | 200.12 | 251.45 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | AllCycleSimpleBody |
net6.0 | 205μs | 125ns | 468ns | 2.65 | 0 | 0 | 188.76 KB |
master | AllCycleSimpleBody |
netcoreapp3.1 | 312μs | 150ns | 582ns | 2.65 | 0 | 0 | 196.09 KB |
master | AllCycleSimpleBody |
net472 | 270μs | 553ns | 2.14μs | 35.9 | 2.04 | 0 | 225.78 KB |
master | AllCycleMoreComplexBody |
net6.0 | 207μs | 150ns | 559ns | 2.69 | 0 | 0 | 192.26 KB |
master | AllCycleMoreComplexBody |
netcoreapp3.1 | 321μs | 173ns | 669ns | 2.73 | 0 | 0 | 199.5 KB |
master | AllCycleMoreComplexBody |
net472 | 273μs | 165ns | 596ns | 36.4 | 2.05 | 0 | 229.3 KB |
master | ObjectExtractorSimpleBody |
net6.0 | 140ns | 0.167ns | 0.647ns | 0.00392 | 0 | 0 | 280 B |
master | ObjectExtractorSimpleBody |
netcoreapp3.1 | 200ns | 0.134ns | 0.5ns | 0.00375 | 0 | 0 | 272 B |
master | ObjectExtractorSimpleBody |
net472 | 166ns | 0.132ns | 0.511ns | 0.0446 | 0 | 0 | 281 B |
master | ObjectExtractorMoreComplexBody |
net6.0 | 2.89μs | 1.68ns | 6.3ns | 0.0535 | 0 | 0 | 3.78 KB |
master | ObjectExtractorMoreComplexBody |
netcoreapp3.1 | 3.84μs | 2.01ns | 7.51ns | 0.0504 | 0 | 0 | 3.69 KB |
master | ObjectExtractorMoreComplexBody |
net472 | 3.62μs | 5.1ns | 19.8ns | 0.603 | 0.00541 | 0 | 3.8 KB |
#6508 | AllCycleSimpleBody |
net6.0 | 205μs | 73.2ns | 264ns | 2.66 | 0 | 0 | 188.76 KB |
#6508 | AllCycleSimpleBody |
netcoreapp3.1 | 308μs | 107ns | 387ns | 2.61 | 0 | 0 | 196.09 KB |
#6508 | AllCycleSimpleBody |
net472 | 275μs | 296ns | 1.15μs | 35.9 | 2.06 | 0 | 225.79 KB |
#6508 | AllCycleMoreComplexBody |
net6.0 | 212μs | 120ns | 466ns | 2.64 | 0 | 0 | 192.26 KB |
#6508 | AllCycleMoreComplexBody |
netcoreapp3.1 | 318μs | 58.9ns | 220ns | 2.7 | 0 | 0 | 199.51 KB |
#6508 | AllCycleMoreComplexBody |
net472 | 276μs | 177ns | 613ns | 36.3 | 2.08 | 0 | 229.3 KB |
#6508 | ObjectExtractorSimpleBody |
net6.0 | 143ns | 0.0916ns | 0.33ns | 0.00392 | 0 | 0 | 280 B |
#6508 | ObjectExtractorSimpleBody |
netcoreapp3.1 | 251ns | 0.133ns | 0.514ns | 0.00373 | 0 | 0 | 272 B |
#6508 | ObjectExtractorSimpleBody |
net472 | 180ns | 0.301ns | 1.13ns | 0.0446 | 0 | 0 | 281 B |
#6508 | ObjectExtractorMoreComplexBody |
net6.0 | 2.83μs | 2.94ns | 11.4ns | 0.0534 | 0 | 0 | 3.78 KB |
#6508 | ObjectExtractorMoreComplexBody |
netcoreapp3.1 | 3.8μs | 1.81ns | 7.01ns | 0.0492 | 0 | 0 | 3.69 KB |
#6508 | ObjectExtractorMoreComplexBody |
net472 | 3.69μs | 5.76ns | 22.3ns | 0.603 | 0.00553 | 0 | 3.8 KB |
Benchmarks.Trace.Asm.AppSecEncoderBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EncodeArgs |
net6.0 | 37.9μs | 30.9ns | 120ns | 0.457 | 0 | 0 | 32.4 KB |
master | EncodeArgs |
netcoreapp3.1 | 54.4μs | 38.1ns | 147ns | 0.433 | 0 | 0 | 32.4 KB |
master | EncodeArgs |
net472 | 67.5μs | 55.1ns | 199ns | 5.14 | 0.0671 | 0 | 32.5 KB |
master | EncodeLegacyArgs |
net6.0 | 73.9μs | 73.2ns | 274ns | 0 | 0 | 0 | 2.14 KB |
master | EncodeLegacyArgs |
netcoreapp3.1 | 104μs | 68.8ns | 266ns | 0 | 0 | 0 | 2.14 KB |
master | EncodeLegacyArgs |
net472 | 156μs | 55ns | 213ns | 0.311 | 0 | 0 | 2.15 KB |
#6508 | EncodeArgs |
net6.0 | 36.6μs | 31.1ns | 112ns | 0.459 | 0 | 0 | 32.4 KB |
#6508 | EncodeArgs |
netcoreapp3.1 | 53.8μs | 33.2ns | 124ns | 0.428 | 0 | 0 | 32.4 KB |
#6508 | EncodeArgs |
net472 | 65.9μs | 65.8ns | 246ns | 5.16 | 0.0658 | 0 | 32.5 KB |
#6508 | EncodeLegacyArgs |
net6.0 | 77μs | 218ns | 846ns | 0 | 0 | 0 | 2.14 KB |
#6508 | EncodeLegacyArgs |
netcoreapp3.1 | 106μs | 104ns | 405ns | 0 | 0 | 0 | 2.14 KB |
#6508 | EncodeLegacyArgs |
net472 | 154μs | 85.1ns | 318ns | 0.308 | 0 | 0 | 2.15 KB |
Benchmarks.Trace.Asm.AppSecWafBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunWafRealisticBenchmark |
net6.0 | 175μs | 119ns | 462ns | 0 | 0 | 0 | 2.44 KB |
master | RunWafRealisticBenchmark |
netcoreapp3.1 | 189μs | 146ns | 567ns | 0 | 0 | 0 | 2.39 KB |
master | RunWafRealisticBenchmark |
net472 | 202μs | 116ns | 449ns | 0.302 | 0 | 0 | 2.46 KB |
master | RunWafRealisticBenchmarkWithAttack |
net6.0 | 117μs | 42.2ns | 158ns | 0 | 0 | 0 | 1.47 KB |
master | RunWafRealisticBenchmarkWithAttack |
netcoreapp3.1 | 124μs | 168ns | 650ns | 0 | 0 | 0 | 1.46 KB |
master | RunWafRealisticBenchmarkWithAttack |
net472 | 133μs | 60.1ns | 233ns | 0.199 | 0 | 0 | 1.49 KB |
#6508 | RunWafRealisticBenchmark |
net6.0 | 176μs | 53.1ns | 206ns | 0 | 0 | 0 | 2.44 KB |
#6508 | RunWafRealisticBenchmark |
netcoreapp3.1 | 185μs | 400ns | 1.55μs | 0 | 0 | 0 | 2.39 KB |
#6508 | RunWafRealisticBenchmark |
net472 | 200μs | 74.8ns | 280ns | 0.3 | 0 | 0 | 2.46 KB |
#6508 | RunWafRealisticBenchmarkWithAttack |
net6.0 | 115μs | 56.9ns | 213ns | 0 | 0 | 0 | 1.47 KB |
#6508 | RunWafRealisticBenchmarkWithAttack |
netcoreapp3.1 | 124μs | 63.4ns | 237ns | 0 | 0 | 0 | 1.46 KB |
#6508 | RunWafRealisticBenchmarkWithAttack |
net472 | 133μs | 45.1ns | 169ns | 0.199 | 0 | 0 | 1.49 KB |
Benchmarks.Trace.Iast.StringAspectsBenchmark - Same speed ✔️ More allocations ⚠️
More allocations ⚠️ in #6508
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0
255.81 KB
258.33 KB
2.52 KB
0.99%
Fewer allocations 🎉 in #6508
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net472
282.36 KB
278.53 KB
-3.83 KB
-1.36%
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0 | 255.81 KB | 258.33 KB | 2.52 KB | 0.99% |
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net472 | 282.36 KB | 278.53 KB | -3.83 KB | -1.36% |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StringConcatBenchmark |
net6.0 | 57.9μs | 793ns | 7.85μs | 0 | 0 | 0 | 43.44 KB |
master | StringConcatBenchmark |
netcoreapp3.1 | 53.7μs | 258ns | 1.06μs | 0 | 0 | 0 | 42.64 KB |
master | StringConcatBenchmark |
net472 | 38.2μs | 174ns | 673ns | 0 | 0 | 0 | 59.18 KB |
master | StringConcatAspectBenchmark |
net6.0 | 309μs | 1.59μs | 8.42μs | 0 | 0 | 0 | 255.81 KB |
master | StringConcatAspectBenchmark |
netcoreapp3.1 | 360μs | 1.98μs | 14.6μs | 0 | 0 | 0 | 262.71 KB |
master | StringConcatAspectBenchmark |
net472 | 244μs | 1.24μs | 5.68μs | 0 | 0 | 0 | 282.36 KB |
#6508 | StringConcatBenchmark |
net6.0 | 59μs | 658ns | 6.51μs | 0 | 0 | 0 | 43.44 KB |
#6508 | StringConcatBenchmark |
netcoreapp3.1 | 59.2μs | 834ns | 8.26μs | 0 | 0 | 0 | 42.64 KB |
#6508 | StringConcatBenchmark |
net472 | 37.8μs | 72.3ns | 271ns | 0 | 0 | 0 | 59.26 KB |
#6508 | StringConcatAspectBenchmark |
net6.0 | 300μs | 6.22μs | 61.6μs | 0 | 0 | 0 | 258.33 KB |
#6508 | StringConcatAspectBenchmark |
netcoreapp3.1 | 350μs | 2.01μs | 16.4μs | 0 | 0 | 0 | 261.46 KB |
#6508 | StringConcatAspectBenchmark |
net472 | 280μs | 6.22μs | 60μs | 0 | 0 | 0 | 278.53 KB |
Benchmarks Report for tracer 🐌Benchmarks for #6508 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‑net6.0 | 1.128 | 402.73 | 454.27 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 403ns | 0.158ns | 0.612ns | 0.00809 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 596ns | 0.347ns | 1.34ns | 0.0077 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 708ns | 0.276ns | 1.07ns | 0.0917 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 544ns | 0.208ns | 0.778ns | 0.00982 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 716ns | 1.64ns | 6.34ns | 0.00925 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 791ns | 0.258ns | 0.967ns | 0.104 | 0 | 0 | 658 B |
#6508 | StartFinishSpan |
net6.0 | 455ns | 0.212ns | 0.819ns | 0.00799 | 0 | 0 | 576 B |
#6508 | StartFinishSpan |
netcoreapp3.1 | 563ns | 0.342ns | 1.32ns | 0.00783 | 0 | 0 | 576 B |
#6508 | StartFinishSpan |
net472 | 650ns | 0.34ns | 1.27ns | 0.0917 | 0 | 0 | 578 B |
#6508 | StartFinishScope |
net6.0 | 513ns | 0.179ns | 0.647ns | 0.00984 | 0 | 0 | 696 B |
#6508 | StartFinishScope |
netcoreapp3.1 | 728ns | 0.248ns | 0.959ns | 0.00961 | 0 | 0 | 696 B |
#6508 | StartFinishScope |
net472 | 869ns | 0.502ns | 1.95ns | 0.104 | 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 | 673ns | 0.413ns | 1.6ns | 0.0098 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 896ns | 0.569ns | 2.13ns | 0.00951 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.11μs | 0.346ns | 1.34ns | 0.104 | 0 | 0 | 658 B |
#6508 | RunOnMethodBegin |
net6.0 | 690ns | 0.321ns | 1.24ns | 0.00971 | 0 | 0 | 696 B |
#6508 | RunOnMethodBegin |
netcoreapp3.1 | 847ns | 0.823ns | 3.08ns | 0.00924 | 0 | 0 | 696 B |
#6508 | RunOnMethodBegin |
net472 | 1.14μs | 0.213ns | 0.824ns | 0.104 | 0 | 0 | 658 B |
16a32e6
to
ea37a8e
Compare
ea37a8e
to
aa88b9f
Compare
Summary of changes
Reason for change
Implementation details
Test coverage
Other details