Repository navigation
[Perf -14%] System.Reflection.Attributes.GetCustomAttributesClassHit (2) #44816
Copy link
Copy link
Closed
Labels
arch-x64area-System.Reflectionos-linuxLinux OS (any supported distro)Linux OS (any supported distro)tenet-performancePerformance related issuePerformance related issuetenet-performance-benchmarksIssue from performance benchmarkIssue from performance benchmark
Milestone
Description
Run Information
| Architecture | x64 |
|---|---|
| OS | ubuntu 18.04 |
| Baseline | fcce1608222d542eea0b419bcee3c62775c1c418 |
| Compare | 52d405e92db4eaaf7f3c52ac615d9cd4f5341315 |
| Diff | Diff |
Regressions in System.Reflection.Attributes
| Benchmark | Baseline | Test | Test/Base | Baseline IR | Compare IR | IR Ratio | Baseline ETL | Compare ETL |
|---|---|---|---|---|---|---|---|---|
| GetCustomAttributesMethodBaseHit | 945.36 ns | 1.15 μs | 1.21 | |||||
| GetCustomAttributesClassHit | 922.46 ns | 1.12 μs | 1.21 |
Related Issue on x64 Windows
[Perf -9%] System.Reflection.Attributes.GetCustomAttributesMethodBaseHitInherit
Related Issue on x86 Windows
[Perf -8%] System.Reflection.Attributes.IsDefinedMethodBaseMiss
Historical Data in Reporting System
Repro
git clone https://github.com/dotnet/performance.git
python3 .\performance\scripts\benchmarks_ci.py -f netcoreapp5.0 --filter 'System.Reflection.Attributes*'Details
Histogram
System.Reflection.Attributes.GetCustomAttributesMethodBaseHit
[ 922.398 ; 956.872) | @@@@@@@@@@@@@@@@@@@@@@@@@@
[ 956.872 ; 976.632) | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[ 976.632 ; 1000.064) | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[1000.064 ; 1040.480) | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[1040.480 ; 1081.836) | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[1081.836 ; 1120.491) | @@@@@@@@@@@@@@
[1120.491 ; 1161.110) | @@@@@@@@@@@@@@@@@
[1161.110 ; 1188.058) | @@
[1188.058 ; 1225.138) | @@@@@@
[1225.138 ; 1269.293) | @
[1269.293 ; 1327.442) | @
System.Reflection.Attributes.GetCustomAttributesClassHit
[ 911.653 ; 934.782) | @@@@@@@@@@@
[ 934.782 ; 957.356) | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[ 957.356 ; 978.971) | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[ 978.971 ; 1001.011) | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[1001.011 ; 1023.298) | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[1023.298 ; 1058.032) | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[1058.032 ; 1084.649) | @@@@@@@@@@@@@@@
[1084.649 ; 1109.994) | @@@@@@@@@@@@
[1109.994 ; 1139.926) | @@@@@@@@
[1139.926 ; 1181.718) | @@@@@@
[1181.718 ; 1211.032) | @@
[1211.032 ; 1251.199) | @
[1251.199 ; 1296.092) | @
[1296.092 ; 1356.578) | @@@
Docs
Profiling workflow for dotnet/runtime repository
Benchmarking workflow for dotnet/runtime repository
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
arch-x64area-System.Reflectionos-linuxLinux OS (any supported distro)Linux OS (any supported distro)tenet-performancePerformance related issuePerformance related issuetenet-performance-benchmarksIssue from performance benchmarkIssue from performance benchmark
Type
Projects
- StatusShow more project fieldsDone


Activity
steveharter commentedon Nov 24, 2020
Not sure on source of regression although #45121 may help.
danmoseley commentedon Nov 25, 2020
cc @benaadams
danmoseley commentedon Nov 25, 2020
It's a wierd regression, on both the scenarios it creeps up noisily during the Nov 13th. Hard to interpret such behavior, it's as if training data was rotting or something.
krwq commentedon Jul 22, 2021
[Triage] Is this tracking the same work as #44713 ? In the meantime we're moving this to 7.0 as it seems non-essential for 6.0
steveharter commentedon Dec 5, 2022
Closing; old issue with no obvious root cause. There were various perf improvements made in V6 #53152 based off of #45121.
No - that other issue was tracking "all attributes" while
GetCustomAttributesClassHitwas only selecting a single attribute.