<s> import timeit <EOL> datafiles = ( '<STR_LIT>' , '<STR_LIT>' , ) <EOL> words_lst = [ None ] <EOL> for datafile in datafiles : <EOL> words = [ ] <EOL> for line in open ( datafile ) : <EOL> words . extend ( line . split ( ) ) <EOL> for cache_size in ( <NUM_LIT:0> , <NUM_LIT:1> , <NUM_LIT> , <NUM_LIT> ) : <EOL> setup = r"""<STR_LIT>""" % ( cache_size , datafile ) <EOL> t = timeit . Timer ( setup = setup , <EOL> stmt = '<STR_LIT>' ) <EOL> for iters in ( <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:3> , <NUM_LIT:10> ) : <EOL> times = [ time / iters for time in t . repeat ( <NUM_LIT:5> , iters ) ] <EOL> print "<STR_LIT>" % ( datafile , len ( words ) , cache_size , iters , min ( times ) ) </s>
