Vbench performance benchmarks for pandas

attrs_caching

setattr_dataframe_index

Benchmark setup

from pandas_vb_common import *

df = DataFrame(np.random.randn(10, 6))
cur_index = df.index

Benchmark statement

df.index = cur_index

Performance graph

_images/setattr_dataframe_index.png

getattr_dataframe_index

Benchmark setup

from pandas_vb_common import *

df = DataFrame(np.random.randn(10, 6))
cur_index = df.index

Benchmark statement

foo = df.index

Performance graph

_images/getattr_dataframe_index.png