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
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