#!/usr/bin/env python import time t = time.clock() data = {} for i in xrange(250000): data[i] = '!' * (i % 1000) print time.clock() - t