-
Notifications
You must be signed in to change notification settings - Fork 151
Tests older cosmos emulator #7776
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
|
BenchmarksBenchmarks Report for benchmark platform 🐌Benchmarks for #7776 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 ✔️ Fewer allocations 🎉
|
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.ActivityBenchmark.StartStopWithChild‑net472 | 6.05 KB | 6 KB | -49 B | -0.81% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StartStopWithChild |
net6.0 | 10.5μs | 56ns | 322ns | 0 | 0 | 0 | 5.52 KB |
| master | StartStopWithChild |
netcoreapp3.1 | 13.9μs | 58.8ns | 220ns | 0 | 0 | 0 | 5.7 KB |
| master | StartStopWithChild |
net472 | 21.9μs | 120ns | 699ns | 1.02 | 0.339 | 0.113 | 6.05 KB |
| #7776 | StartStopWithChild |
net6.0 | 10.8μs | 58.9ns | 348ns | 0 | 0 | 0 | 5.51 KB |
| #7776 | StartStopWithChild |
netcoreapp3.1 | 14.5μs | 72.8ns | 317ns | 0 | 0 | 0 | 5.68 KB |
| #7776 | StartStopWithChild |
net472 | 22μs | 123ns | 786ns | 0.97 | 0.431 | 0.108 | 6 KB |
Benchmarks.Trace.AgentWriterBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | WriteAndFlushEnrichedTraces |
net6.0 | 944μs | 539ns | 1.87μs | 0 | 0 | 0 | 2.7 KB |
| master | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 1.01ms | 65.2ns | 226ns | 0 | 0 | 0 | 2.7 KB |
| master | WriteAndFlushEnrichedTraces |
net472 | 1.2ms | 79.3ns | 307ns | 0 | 0 | 0 | 3.31 KB |
| #7776 | WriteAndFlushEnrichedTraces |
net6.0 | 935μs | 77.4ns | 290ns | 0 | 0 | 0 | 2.71 KB |
| #7776 | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 1.05ms | 356ns | 1.38μs | 0 | 0 | 0 | 2.7 KB |
| #7776 | WriteAndFlushEnrichedTraces |
net472 | 1.21ms | 54.3ns | 203ns | 0 | 0 | 0 | 3.31 KB |
Benchmarks.Trace.Asm.AppSecBodyBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | AllCycleSimpleBody |
net6.0 | 1.09μs | 5.82ns | 32.4ns | 0 | 0 | 0 | 1.22 KB |
| master | AllCycleSimpleBody |
netcoreapp3.1 | 1.4μs | 7.77ns | 49.8ns | 0 | 0 | 0 | 1.2 KB |
| master | AllCycleSimpleBody |
net472 | 1.02μs | 0.517ns | 2ns | 0.194 | 0 | 0 | 1.23 KB |
| master | AllCycleMoreComplexBody |
net6.0 | 7.12μs | 39ns | 237ns | 0 | 0 | 0 | 4.72 KB |
| master | AllCycleMoreComplexBody |
netcoreapp3.1 | 9.04μs | 44.4ns | 177ns | 0 | 0 | 0 | 4.62 KB |
| master | AllCycleMoreComplexBody |
net472 | 7.63μs | 3.5ns | 13.6ns | 0.723 | 0 | 0 | 4.74 KB |
| master | ObjectExtractorSimpleBody |
net6.0 | 322ns | 0.119ns | 0.462ns | 0 | 0 | 0 | 280 B |
| master | ObjectExtractorSimpleBody |
netcoreapp3.1 | 401ns | 2.11ns | 10.8ns | 0 | 0 | 0 | 272 B |
| master | ObjectExtractorSimpleBody |
net472 | 296ns | 0.026ns | 0.0939ns | 0.0432 | 0 | 0 | 281 B |
| master | ObjectExtractorMoreComplexBody |
net6.0 | 6.32μs | 29.7ns | 115ns | 0 | 0 | 0 | 3.78 KB |
| master | ObjectExtractorMoreComplexBody |
netcoreapp3.1 | 7.8μs | 40ns | 183ns | 0 | 0 | 0 | 3.69 KB |
| master | ObjectExtractorMoreComplexBody |
net472 | 6.69μs | 1.15ns | 4.46ns | 0.603 | 0 | 0 | 3.8 KB |
| #7776 | AllCycleSimpleBody |
net6.0 | 1.05μs | 6.13ns | 57.5ns | 0 | 0 | 0 | 1.22 KB |
| #7776 | AllCycleSimpleBody |
netcoreapp3.1 | 1.38μs | 7.62ns | 44.4ns | 0 | 0 | 0 | 1.2 KB |
| #7776 | AllCycleSimpleBody |
net472 | 1.02μs | 0.301ns | 1.12ns | 0.192 | 0 | 0 | 1.23 KB |
| #7776 | AllCycleMoreComplexBody |
net6.0 | 7.05μs | 34.7ns | 159ns | 0 | 0 | 0 | 4.72 KB |
| #7776 | AllCycleMoreComplexBody |
netcoreapp3.1 | 8.87μs | 45.2ns | 202ns | 0 | 0 | 0 | 4.62 KB |
| #7776 | AllCycleMoreComplexBody |
net472 | 7.64μs | 5.96ns | 23.1ns | 0.726 | 0 | 0 | 4.74 KB |
| #7776 | ObjectExtractorSimpleBody |
net6.0 | 322ns | 0.434ns | 1.68ns | 0 | 0 | 0 | 280 B |
| #7776 | ObjectExtractorSimpleBody |
netcoreapp3.1 | 396ns | 2.17ns | 13ns | 0 | 0 | 0 | 272 B |
| #7776 | ObjectExtractorSimpleBody |
net472 | 302ns | 0.0303ns | 0.105ns | 0.0441 | 0 | 0 | 281 B |
| #7776 | ObjectExtractorMoreComplexBody |
net6.0 | 6.34μs | 32.3ns | 151ns | 0 | 0 | 0 | 3.78 KB |
| #7776 | ObjectExtractorMoreComplexBody |
netcoreapp3.1 | 7.85μs | 37.5ns | 145ns | 0 | 0 | 0 | 3.69 KB |
| #7776 | ObjectExtractorMoreComplexBody |
net472 | 6.73μs | 3.94ns | 15.3ns | 0.571 | 0 | 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 | 76.3μs | 205ns | 794ns | 0 | 0 | 0 | 32.4 KB |
| master | EncodeArgs |
netcoreapp3.1 | 97.1μs | 200ns | 747ns | 0 | 0 | 0 | 32.4 KB |
| master | EncodeArgs |
net472 | 112μs | 22.5ns | 84.1ns | 5.06 | 0 | 0 | 32.51 KB |
| master | EncodeLegacyArgs |
net6.0 | 144μs | 49.3ns | 191ns | 0 | 0 | 0 | 2.15 KB |
| master | EncodeLegacyArgs |
netcoreapp3.1 | 196μs | 299ns | 1.16μs | 0 | 0 | 0 | 2.14 KB |
| master | EncodeLegacyArgs |
net472 | 266μs | 460ns | 1.78μs | 0 | 0 | 0 | 2.16 KB |
| #7776 | EncodeArgs |
net6.0 | 76.9μs | 76.6ns | 276ns | 0 | 0 | 0 | 32.4 KB |
| #7776 | EncodeArgs |
netcoreapp3.1 | 97.1μs | 205ns | 795ns | 0 | 0 | 0 | 32.4 KB |
| #7776 | EncodeArgs |
net472 | 110μs | 20.6ns | 79.8ns | 4.95 | 0 | 0 | 32.51 KB |
| #7776 | EncodeLegacyArgs |
net6.0 | 142μs | 90.4ns | 338ns | 0 | 0 | 0 | 2.15 KB |
| #7776 | EncodeLegacyArgs |
netcoreapp3.1 | 200μs | 81.1ns | 304ns | 0 | 0 | 0 | 2.14 KB |
| #7776 | EncodeLegacyArgs |
net472 | 265μs | 36.4ns | 141ns | 0 | 0 | 0 | 2.17 KB |
Benchmarks.Trace.Asm.AppSecWafBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #7776
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack‑netcoreapp3.1
2.443
297,219.20
726,191.74
| Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack‑netcoreapp3.1 | 2.443 | 297,219.20 | 726,191.74 |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | RunWafRealisticBenchmark |
net6.0 | 391μs | 222ns | 832ns | 0 | 0 | 0 | 4.55 KB |
| master | RunWafRealisticBenchmark |
netcoreapp3.1 | 814μs | 13.3μs | 132μs | 0 | 0 | 0 | 4.48 KB |
| master | RunWafRealisticBenchmark |
net472 | 427μs | 53.8ns | 201ns | 0 | 0 | 0 | 4.66 KB |
| master | RunWafRealisticBenchmarkWithAttack |
net6.0 | 282μs | 53.1ns | 206ns | 0 | 0 | 0 | 2.24 KB |
| master | RunWafRealisticBenchmarkWithAttack |
netcoreapp3.1 | 297μs | 82.8ns | 310ns | 0 | 0 | 0 | 2.22 KB |
| master | RunWafRealisticBenchmarkWithAttack |
net472 | 309μs | 25.7ns | 99.7ns | 0 | 0 | 0 | 2.29 KB |
| #7776 | RunWafRealisticBenchmark |
net6.0 | 397μs | 408ns | 1.58μs | 0 | 0 | 0 | 4.55 KB |
| #7776 | RunWafRealisticBenchmark |
netcoreapp3.1 | 843μs | 8.07μs | 80.3μs | 0 | 0 | 0 | 4.48 KB |
| #7776 | RunWafRealisticBenchmark |
net472 | 429μs | 69.4ns | 269ns | 0 | 0 | 0 | 4.66 KB |
| #7776 | RunWafRealisticBenchmarkWithAttack |
net6.0 | 284μs | 46.5ns | 174ns | 0 | 0 | 0 | 2.24 KB |
| #7776 | RunWafRealisticBenchmarkWithAttack |
netcoreapp3.1 | 685μs | 12.4μs | 124μs | 0 | 0 | 0 | 2.22 KB |
| #7776 | RunWafRealisticBenchmarkWithAttack |
net472 | 312μs | 39.6ns | 153ns | 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 | 62μs | 34.9ns | 131ns | 0 | 0 | 0 | 14.52 KB |
| master | SendRequest |
netcoreapp3.1 | 72.1μs | 106ns | 398ns | 0 | 0 | 0 | 17.42 KB |
| master | SendRequest |
net472 | 0.00513ns | 0.00201ns | 0.00777ns | 0 | 0 | 0 | 0 b |
| #7776 | SendRequest |
net6.0 | 61.8μs | 298ns | 1.19μs | 0 | 0 | 0 | 14.52 KB |
| #7776 | SendRequest |
netcoreapp3.1 | 70.7μs | 144ns | 519ns | 0 | 0 | 0 | 17.42 KB |
| #7776 | SendRequest |
net472 | 0.0029ns | 0.00124ns | 0.00464ns | 0 | 0 | 0 | 0 b |
Benchmarks.Trace.CharSliceBenchmark - Same speed ✔️ More allocations ⚠️
More allocations ⚠️ in #7776
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice‑net6.0
2 B
4 B
2 B
100.00%
Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑net6.0
3 B
4 B
1 B
33.33%
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice‑net6.0 | 2 B | 4 B | 2 B | 100.00% |
| Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑net6.0 | 3 B | 4 B | 1 B | 33.33% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | OriginalCharSlice |
net6.0 | 1.89ms | 2.88μs | 10.8μs | 0 | 0 | 0 | 640.01 KB |
| master | OriginalCharSlice |
netcoreapp3.1 | 2.07ms | 7.16μs | 27.7μs | 0 | 0 | 0 | 640 KB |
| master | OriginalCharSlice |
net472 | 2.72ms | 329ns | 1.27μs | 100 | 0 | 0 | 641.95 KB |
| master | OptimizedCharSlice |
net6.0 | 1.34ms | 181ns | 702ns | 0 | 0 | 0 | 2 B |
| master | OptimizedCharSlice |
netcoreapp3.1 | 1.71ms | 344ns | 1.33μs | 0 | 0 | 0 | 1 B |
| master | OptimizedCharSlice |
net472 | 1.99ms | 472ns | 1.83μs | 0 | 0 | 0 | 0 b |
| master | OptimizedCharSliceWithPool |
net6.0 | 850μs | 54.4ns | 211ns | 0 | 0 | 0 | 3 B |
| master | OptimizedCharSliceWithPool |
netcoreapp3.1 | 845μs | 83.8ns | 324ns | 0 | 0 | 0 | 0 b |
| master | OptimizedCharSliceWithPool |
net472 | 1.15ms | 122ns | 474ns | 0 | 0 | 0 | 0 b |
| #7776 | OriginalCharSlice |
net6.0 | 1.98ms | 334ns | 1.29μs | 0 | 0 | 0 | 640.01 KB |
| #7776 | OriginalCharSlice |
netcoreapp3.1 | 2.12ms | 9.73μs | 37.7μs | 0 | 0 | 0 | 640 KB |
| #7776 | OriginalCharSlice |
net472 | 2.65ms | 101ns | 391ns | 100 | 0 | 0 | 641.95 KB |
| #7776 | OptimizedCharSlice |
net6.0 | 1.46ms | 543ns | 2.1μs | 0 | 0 | 0 | 4 B |
| #7776 | OptimizedCharSlice |
netcoreapp3.1 | 1.76ms | 540ns | 2.09μs | 0 | 0 | 0 | 1 B |
| #7776 | OptimizedCharSlice |
net472 | 1.97ms | 215ns | 834ns | 0 | 0 | 0 | 0 b |
| #7776 | OptimizedCharSliceWithPool |
net6.0 | 864μs | 27.9ns | 104ns | 0 | 0 | 0 | 4 B |
| #7776 | OptimizedCharSliceWithPool |
netcoreapp3.1 | 917μs | 55.3ns | 207ns | 0 | 0 | 0 | 0 b |
| #7776 | OptimizedCharSliceWithPool |
net472 | 1.15ms | 141ns | 544ns | 0 | 0 | 0 | 0 b |
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark - Faster 🎉 More allocations ⚠️
Faster 🎉 in #7776
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑net472
1.187
1,070,758.17
901,702.68
More allocations ⚠️ in #7776
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑net6.0
41.57 KB
42.12 KB
544 B
1.31%
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑netcoreapp3.1
41.89 KB
42.2 KB
312 B
0.74%
| Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑net472 | 1.187 | 1,070,758.17 | 901,702.68 |
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑net6.0 | 41.57 KB | 42.12 KB | 544 B | 1.31% |
| Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑netcoreapp3.1 | 41.89 KB | 42.2 KB | 312 B | 0.74% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | WriteAndFlushEnrichedTraces |
net6.0 | 715μs | 3.62μs | 16.6μs | 0 | 0 | 0 | 41.57 KB |
| master | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 754μs | 932ns | 3.61μs | 0 | 0 | 0 | 41.89 KB |
| master | WriteAndFlushEnrichedTraces |
net472 | 1.07ms | 5.72μs | 29.7μs | 4.81 | 0 | 0 | 56.38 KB |
| #7776 | WriteAndFlushEnrichedTraces |
net6.0 | 738μs | 3.67μs | 15.6μs | 0 | 0 | 0 | 42.12 KB |
| #7776 | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 713μs | 3.68μs | 18μs | 0 | 0 | 0 | 42.2 KB |
| #7776 | WriteAndFlushEnrichedTraces |
net472 | 910μs | 4.51μs | 19.7μs | 8.93 | 4.46 | 0 | 56.47 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 | 1.88μs | 9.09ns | 38.5ns | 0 | 0 | 0 | 1.02 KB |
| master | ExecuteNonQuery |
netcoreapp3.1 | 2.68μs | 6.38ns | 24.7ns | 0 | 0 | 0 | 1.02 KB |
| master | ExecuteNonQuery |
net472 | 2.85μs | 6.58ns | 25.5ns | 0.143 | 0.0143 | 0 | 987 B |
| #7776 | ExecuteNonQuery |
net6.0 | 1.95μs | 9.3ns | 37.2ns | 0 | 0 | 0 | 1.02 KB |
| #7776 | ExecuteNonQuery |
netcoreapp3.1 | 2.73μs | 9.93ns | 38.4ns | 0 | 0 | 0 | 1.02 KB |
| #7776 | ExecuteNonQuery |
net472 | 2.89μs | 3.01ns | 11.7ns | 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.71μs | 7.96ns | 30.8ns | 0 | 0 | 0 | 1.03 KB |
| master | CallElasticsearch |
netcoreapp3.1 | 2.26μs | 9.24ns | 34.6ns | 0 | 0 | 0 | 1.03 KB |
| master | CallElasticsearch |
net472 | 3.52μs | 1.38ns | 5.36ns | 0.158 | 0 | 0 | 1.04 KB |
| master | CallElasticsearchAsync |
net6.0 | 1.87μs | 9.73ns | 48.7ns | 0 | 0 | 0 | 1.01 KB |
| master | CallElasticsearchAsync |
netcoreapp3.1 | 2.42μs | 9.21ns | 35.7ns | 0 | 0 | 0 | 1.08 KB |
| master | CallElasticsearchAsync |
net472 | 3.6μs | 3.04ns | 11.8ns | 0.163 | 0 | 0 | 1.1 KB |
| #7776 | CallElasticsearch |
net6.0 | 1.72μs | 7.46ns | 28.9ns | 0 | 0 | 0 | 1.03 KB |
| #7776 | CallElasticsearch |
netcoreapp3.1 | 2.22μs | 8.46ns | 32.8ns | 0 | 0 | 0 | 1.03 KB |
| #7776 | CallElasticsearch |
net472 | 3.61μs | 2.89ns | 10.8ns | 0.162 | 0 | 0 | 1.04 KB |
| #7776 | CallElasticsearchAsync |
net6.0 | 1.81μs | 9.49ns | 39.1ns | 0 | 0 | 0 | 1.01 KB |
| #7776 | CallElasticsearchAsync |
netcoreapp3.1 | 2.32μs | 4.76ns | 18.4ns | 0 | 0 | 0 | 1.08 KB |
| #7776 | CallElasticsearchAsync |
net472 | 3.72μs | 3.77ns | 14.6ns | 0.167 | 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 | 7.19ns | 25.9ns | 0 | 0 | 0 | 952 B |
| master | ExecuteAsync |
netcoreapp3.1 | 2.52μs | 8.48ns | 31.7ns | 0 | 0 | 0 | 952 B |
| master | ExecuteAsync |
net472 | 2.56μs | 0.891ns | 3.45ns | 0.141 | 0 | 0 | 915 B |
| #7776 | ExecuteAsync |
net6.0 | 1.87μs | 8.34ns | 31.2ns | 0 | 0 | 0 | 952 B |
| #7776 | ExecuteAsync |
netcoreapp3.1 | 2.46μs | 1.91ns | 7.41ns | 0 | 0 | 0 | 952 B |
| #7776 | ExecuteAsync |
net472 | 2.53μs | 1.01ns | 3.51ns | 0.139 | 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 | 7.05μs | 19.1ns | 73.9ns | 0 | 0 | 0 | 2.36 KB |
| master | SendAsync |
netcoreapp3.1 | 8.58μs | 19.9ns | 71.9ns | 0 | 0 | 0 | 2.9 KB |
| master | SendAsync |
net472 | 12.2μs | 7.3ns | 27.3ns | 0.486 | 0 | 0 | 3.18 KB |
| #7776 | SendAsync |
net6.0 | 6.91μs | 14.4ns | 51.9ns | 0 | 0 | 0 | 2.36 KB |
| #7776 | SendAsync |
netcoreapp3.1 | 8.72μs | 13.8ns | 51.8ns | 0 | 0 | 0 | 2.9 KB |
| #7776 | SendAsync |
net472 | 12.4μs | 8.16ns | 31.6ns | 0.493 | 0 | 0 | 3.18 KB |
Benchmarks.Trace.Iast.StringAspectsBenchmark - Same speed ✔️ More allocations ⚠️
More allocations ⚠️ in #7776
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0
276.25 KB
280.39 KB
4.14 KB
1.50%
Fewer allocations 🎉 in #7776
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net6.0
46.38 KB
46.09 KB
-288 B
-0.62%
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0 | 276.25 KB | 280.39 KB | 4.14 KB | 1.50% |
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net6.0 | 46.38 KB | 46.09 KB | -288 B | -0.62% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StringConcatBenchmark |
net6.0 | 41.5μs | 204ns | 841ns | 0 | 0 | 0 | 46.38 KB |
| master | StringConcatBenchmark |
netcoreapp3.1 | 55.4μs | 766ns | 7.62μs | 0 | 0 | 0 | 42.84 KB |
| master | StringConcatBenchmark |
net472 | 56.5μs | 275ns | 1.29μs | 0 | 0 | 0 | 65.54 KB |
| master | StringConcatAspectBenchmark |
net6.0 | 471μs | 1.97μs | 9.02μs | 0 | 0 | 0 | 276.25 KB |
| master | StringConcatAspectBenchmark |
netcoreapp3.1 | 522μs | 2.61μs | 11.1μs | 0 | 0 | 0 | 275.94 KB |
| master | StringConcatAspectBenchmark |
net472 | 406μs | 2.33μs | 17.1μs | 0 | 0 | 0 | 278.53 KB |
| #7776 | StringConcatBenchmark |
net6.0 | 42.7μs | 242ns | 1.57μs | 0 | 0 | 0 | 46.09 KB |
| #7776 | StringConcatBenchmark |
netcoreapp3.1 | 48.7μs | 257ns | 1.23μs | 0 | 0 | 0 | 42.64 KB |
| #7776 | StringConcatBenchmark |
net472 | 57.4μs | 209ns | 811ns | 0 | 0 | 0 | 65.54 KB |
| #7776 | StringConcatAspectBenchmark |
net6.0 | 499μs | 2.6μs | 12.5μs | 0 | 0 | 0 | 280.39 KB |
| #7776 | StringConcatAspectBenchmark |
netcoreapp3.1 | 480μs | 5.55μs | 54.3μs | 0 | 0 | 0 | 276.3 KB |
| #7776 | StringConcatAspectBenchmark |
net472 | 400μs | 2.14μs | 11.9μ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.66μs | 13.3ns | 59.7ns | 0 | 0 | 0 | 1.71 KB |
| master | EnrichedLog |
netcoreapp3.1 | 3.65μs | 2.01ns | 7.79ns | 0 | 0 | 0 | 1.7 KB |
| master | EnrichedLog |
net472 | 4.05μs | 5.16ns | 20ns | 0.259 | 0 | 0 | 1.64 KB |
| #7776 | EnrichedLog |
net6.0 | 2.64μs | 13ns | 55ns | 0 | 0 | 0 | 1.7 KB |
| #7776 | EnrichedLog |
netcoreapp3.1 | 3.59μs | 1.95ns | 7.54ns | 0 | 0 | 0 | 1.7 KB |
| #7776 | EnrichedLog |
net472 | 4.01μs | 6.48ns | 25.1ns | 0.241 | 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 | 122μs | 68.2ns | 255ns | 0 | 0 | 0 | 4.31 KB |
| master | EnrichedLog |
netcoreapp3.1 | 128μs | 314ns | 1.18μs | 0 | 0 | 0 | 4.31 KB |
| master | EnrichedLog |
net472 | 166μs | 132ns | 510ns | 0 | 0 | 0 | 4.51 KB |
| #7776 | EnrichedLog |
net6.0 | 125μs | 273ns | 945ns | 0 | 0 | 0 | 4.31 KB |
| #7776 | EnrichedLog |
netcoreapp3.1 | 127μs | 195ns | 703ns | 0 | 0 | 0 | 4.31 KB |
| #7776 | EnrichedLog |
net472 | 167μs | 31ns | 107ns | 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.19μs | 2.08ns | 7.21ns | 0 | 0 | 0 | 2.26 KB |
| master | EnrichedLog |
netcoreapp3.1 | 6.66μs | 6ns | 23.2ns | 0 | 0 | 0 | 2.26 KB |
| master | EnrichedLog |
net472 | 7.52μs | 5.76ns | 22.3ns | 0.3 | 0 | 0 | 2.08 KB |
| #7776 | EnrichedLog |
net6.0 | 5.01μs | 16.9ns | 65.5ns | 0 | 0 | 0 | 2.26 KB |
| #7776 | EnrichedLog |
netcoreapp3.1 | 6.9μs | 21.7ns | 83.9ns | 0 | 0 | 0 | 2.26 KB |
| #7776 | EnrichedLog |
net472 | 7.57μs | 5.65ns | 21.9ns | 0.302 | 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 | 2.02μs | 9.94ns | 42.2ns | 0 | 0 | 0 | 1.2 KB |
| master | SendReceive |
netcoreapp3.1 | 2.63μs | 10.2ns | 39.4ns | 0 | 0 | 0 | 1.2 KB |
| master | SendReceive |
net472 | 3.12μs | 1.6ns | 6.2ns | 0.186 | 0 | 0 | 1.2 KB |
| #7776 | SendReceive |
net6.0 | 1.98μs | 9.27ns | 38.2ns | 0 | 0 | 0 | 1.2 KB |
| #7776 | SendReceive |
netcoreapp3.1 | 2.64μs | 11.7ns | 45.2ns | 0 | 0 | 0 | 1.2 KB |
| #7776 | SendReceive |
net472 | 3.03μs | 1.39ns | 4.8ns | 0.183 | 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.34μs | 7.49ns | 29ns | 0 | 0 | 0 | 1.58 KB |
| master | EnrichedLog |
netcoreapp3.1 | 5.7μs | 15.6ns | 60.4ns | 0 | 0 | 0 | 1.63 KB |
| master | EnrichedLog |
net472 | 6.52μs | 8.95ns | 34.7ns | 0.296 | 0 | 0 | 2.03 KB |
| #7776 | EnrichedLog |
net6.0 | 4.31μs | 8.66ns | 33.5ns | 0 | 0 | 0 | 1.58 KB |
| #7776 | EnrichedLog |
netcoreapp3.1 | 5.79μs | 8.98ns | 34.8ns | 0 | 0 | 0 | 1.63 KB |
| #7776 | EnrichedLog |
net472 | 6.48μs | 7.58ns | 29.4ns | 0.292 | 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 | 777ns | 0.918ns | 3.55ns | 0 | 0 | 0 | 576 B |
| master | StartFinishSpan |
netcoreapp3.1 | 971ns | 5.32ns | 29.1ns | 0 | 0 | 0 | 576 B |
| master | StartFinishSpan |
net472 | 930ns | 0.799ns | 3.09ns | 0.0888 | 0 | 0 | 578 B |
| master | StartFinishScope |
net6.0 | 973ns | 4.65ns | 18.6ns | 0 | 0 | 0 | 696 B |
| master | StartFinishScope |
netcoreapp3.1 | 1.2μs | 6.2ns | 29.7ns | 0 | 0 | 0 | 696 B |
| master | StartFinishScope |
net472 | 1.13μs | 0.588ns | 2.28ns | 0.102 | 0 | 0 | 658 B |
| #7776 | StartFinishSpan |
net6.0 | 766ns | 3.67ns | 14.7ns | 0 | 0 | 0 | 576 B |
| #7776 | StartFinishSpan |
netcoreapp3.1 | 954ns | 5.01ns | 20.6ns | 0 | 0 | 0 | 576 B |
| #7776 | StartFinishSpan |
net472 | 921ns | 0.598ns | 2.24ns | 0.088 | 0 | 0 | 578 B |
| #7776 | StartFinishScope |
net6.0 | 939ns | 4.6ns | 18.4ns | 0 | 0 | 0 | 696 B |
| #7776 | StartFinishScope |
netcoreapp3.1 | 1.21μs | 6.19ns | 28.4ns | 0 | 0 | 0 | 697 B |
| #7776 | StartFinishScope |
net472 | 1.14μs | 0.476ns | 1.78ns | 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.05μs | 5.55ns | 28.3ns | 0 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
netcoreapp3.1 | 1.41μs | 6.84ns | 29.8ns | 0 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
net472 | 1.45μs | 0.916ns | 3.55ns | 0.102 | 0 | 0 | 658 B |
| #7776 | RunOnMethodBegin |
net6.0 | 1.04μs | 5.2ns | 24.4ns | 0 | 0 | 0 | 696 B |
| #7776 | RunOnMethodBegin |
netcoreapp3.1 | 1.42μs | 6.13ns | 23ns | 0 | 0 | 0 | 696 B |
| #7776 | RunOnMethodBegin |
net472 | 1.46μs | 0.941ns | 3.52ns | 0.103 | 0 | 0 | 658 B |
Snapshots difference summaryThe following differences have been observed in committed snapshots. It is meant to help the reviewer. 14 occurrences of : + language: dotnet,
[...]
- _dd.git.commit.sha: aaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbb,
- _dd.git.repository_url: https://github.com/DataDog/dd-trace-dotnet
+ _dd.base_service: Samples.CosmosDb
14 occurrences of : + language: dotnet,
[...]
- _dd.git.commit.sha: aaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbb,
- _dd.git.repository_url: https://github.com/DataDog/dd-trace-dotnet,
|
Execution-Time Benchmarks Report ⏱️Execution-time results for samples comparing This PR (7776) 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 (7776) - mean (75ms) : 69, 81
master - mean (75ms) : 68, 82
section Bailout
This PR (7776) - mean (79ms) : 72, 86
master - mean (79ms) : 74, 84
section CallTarget+Inlining+NGEN
This PR (7776) - mean (1,103ms) : 1034, 1171
master - mean (1,097ms) : 1039, 1155
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 (7776) - mean (116ms) : 110, 122
master - mean (118ms) : 110, 126
section Bailout
This PR (7776) - mean (118ms) : 111, 124
master - mean (118ms) : 113, 124
section CallTarget+Inlining+NGEN
This PR (7776) - mean (797ms) : 759, 836
master - mean (805ms) : 777, 834
FakeDbCommand (.NET 6)gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7776) - mean (103ms) : 96, 109
master - mean (104ms) : 98, 109
section Bailout
This PR (7776) - mean (105ms) : 97, 113
master - mean (105ms) : 99, 111
section CallTarget+Inlining+NGEN
This PR (7776) - mean (742ms) : 704, 780
master - mean (759ms) : 726, 792
FakeDbCommand (.NET 8)gantt
title Execution time (ms) FakeDbCommand (.NET 8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7776) - mean (101ms) : 94, 109
master - mean (103ms) : 95, 111
section Bailout
This PR (7776) - mean (104ms) : 97, 110
master - mean (103ms) : 98, 109
section CallTarget+Inlining+NGEN
This PR (7776) - mean (701ms) : 674, 728
master - mean (719ms) : 694, 744
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 (7776) - mean (193ms) : 187, 199
master - mean (191ms) : 188, 195
section Bailout
This PR (7776) - mean (196ms) : 194, 199
master - mean (195ms) : 191, 198
section CallTarget+Inlining+NGEN
This PR (7776) - mean (1,176ms) : 1110, 1243
master - mean (1,166ms) : 1090, 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 (7776) - mean (276ms) : 271, 281
master - mean (275ms) : 269, 281
section Bailout
This PR (7776) - mean (278ms) : 270, 286
master - mean (275ms) : 271, 280
section CallTarget+Inlining+NGEN
This PR (7776) - mean (940ms) : 886, 993
master - mean (943ms) : 904, 981
HttpMessageHandler (.NET 6)gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7776) - mean (272ms) : 268, 276
master - mean (267ms) : 261, 273
section Bailout
This PR (7776) - mean (274ms) : 268, 279
master - mean (269ms) : 262, 276
section CallTarget+Inlining+NGEN
This PR (7776) - mean (930ms) : 888, 973
master - mean (925ms) : 878, 973
HttpMessageHandler (.NET 8)gantt
title Execution time (ms) HttpMessageHandler (.NET 8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7776) - mean (272ms) : 265, 279
master - mean (267ms) : 261, 272
section Bailout
This PR (7776) - mean (273ms) : 267, 279
master - mean (268ms) : 260, 275
section CallTarget+Inlining+NGEN
This PR (7776) - mean (855ms) : 831, 879
master - mean (849ms) : 822, 877
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
c49bfe7 to
6a03306
Compare
d6685d9 to
9bf6116
Compare
Summary of changes
Reason for change
Implementation details
Test coverage
Other details