pyperformance icon indicating copy to clipboard operation
pyperformance copied to clipboard

Need benchmark using `__getattribute__`

Open gvanrossum opened this issue 2 years ago • 0 comments

It would be nice if there was a benchmark that exercised __getattribute__ somewhat realistically. Defining that method is the only way to exercise the specialized instruction LOAD_ATTR_GETATTRIBUTE_OVERRIDDEN. Then again, maybe that method is not important enough to have its own specialized opcode?

See also https://github.com/python/cpython/pull/93988#issuecomment-1745806916

gvanrossum avatar Oct 03 '23 22:10 gvanrossum