<s> from . pandas_vb_common import * <EOL> from pandas . util . decorators import cache_readonly <EOL> class match_strings ( object ) : <EOL> goal_time = <NUM_LIT> <EOL> def setup ( self ) : <EOL> self . uniques = tm . makeStringIndex ( <NUM_LIT:1000> ) . values <EOL> self . all = self . uniques . repeat ( <NUM_LIT:10> ) <EOL> def time_match_strings ( self ) : <EOL> match ( self . all , self . uniques ) <EOL> class misc_cache_readonly ( object ) : <EOL> goal_time = <NUM_LIT> <EOL> def setup ( self ) : <EOL> class Foo : <EOL> @ cache_readonly <EOL> def prop ( self ) : <EOL> return <NUM_LIT:5> <EOL> self . obj = Foo ( ) <EOL> def time_misc_cache_readonly ( self ) : <EOL> self . obj . prop </s>
