Vbench performance benchmarks for pandas

miscellaneous

match_strings

Benchmark setup

from pandas_vb_common import *

from pandas.util.testing import rands

uniques = np.array([rands(10) for _ in xrange(1000)], dtype='O')
all = uniques.repeat(10)

Benchmark statement

match(all, uniques)

Performance graph

_images/match_strings.png

misc_cache_readonly

Benchmark setup

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

obj.prop

Performance graph

_images/misc_cache_readonly.png