**Benchmark setup**

.. code-block:: python

    from pandas_vb_common import *
    
    from pandas.util.decorators import cache_readonly
    
    class Foo:
    
        @cache_readonly
        def prop(self):
            return 5
    obj = Foo()
    

**Benchmark statement**

.. code-block:: python

    obj.prop

**Performance graph**

.. image:: vbench/figures/misc_cache_readonly.png
   :width: 6in