3 import os, random, sys, time
5 def read_files(files, rate=1.0):
7 f = random.sample(files, 1)[0]
11 blocks = (16 << 20) / 32768
12 offset = random.randrange(blocks) * 32768
15 print time.time() - start
18 if __name__ == '__main__':
20 for (path, dirs, files) in iter(os.walk(".")):
22 all_files.append(os.path.join(path, f))
23 print len(all_files), "files total"